reorganization

This commit is contained in:
2024-09-10 14:28:57 +03:00
parent 0f1088a066
commit 3a9ba2f320
8 changed files with 119 additions and 177 deletions

View File

@@ -20,7 +20,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-k_$r^3e!9ycqnt0=+ur&sx#hsl44_+v3=al2$_gpnh3u^w!xj$'
SECRET_KEY = 'django-insecure-m!o^q^+en&_v%64&m8%d^%_olkzf7$8jbp0^4dph2=1rn=666m'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
@@ -31,7 +31,6 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
#'rest_framework',
'sample_app',
'django.contrib.admin',
'django.contrib.auth',

View File

@@ -15,10 +15,8 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('sample_app.urls')), # Include your app's URLs
]