Setup Mariadb
This commit is contained in:
0
transport_accessibility/pt_map/__init__.py
Normal file
0
transport_accessibility/pt_map/__init__.py
Normal file
3
transport_accessibility/pt_map/admin.py
Normal file
3
transport_accessibility/pt_map/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
transport_accessibility/pt_map/apps.py
Normal file
6
transport_accessibility/pt_map/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PtMapConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'pt_map'
|
||||
3
transport_accessibility/pt_map/models.py
Normal file
3
transport_accessibility/pt_map/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
3
transport_accessibility/pt_map/tests.py
Normal file
3
transport_accessibility/pt_map/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
6
transport_accessibility/pt_map/urls.py
Normal file
6
transport_accessibility/pt_map/urls.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
]
|
||||
6
transport_accessibility/pt_map/views.py
Normal file
6
transport_accessibility/pt_map/views.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("Test")
|
||||
|
||||
@@ -75,8 +75,11 @@ WSGI_APPLICATION = 'transport_accessibility.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'transport_accessibility',
|
||||
'HOST': 'localhost',
|
||||
'USER': 'transport_accessibility',
|
||||
'PASSWORD': 'L8AClYIsC55SEAWTgYopD',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,9 @@ Including another URLconf
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from django.urls import path, include
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('', include("pt_map.urls"))
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user