+ Приведены все функции приложения в рабочий вид

+ Наведен порядок в файлах проекта
+ Наведен порядок в документации
+ Настроены скрипты установки, развертки и так далее, расширен MakeFile
This commit is contained in:
2025-11-02 06:09:55 +09:00
parent 367e1c932e
commit 2e535513b5
6103 changed files with 7040 additions and 1027861 deletions

View File

@@ -29,7 +29,7 @@ SECRET_KEY = os.getenv('DJANGO_SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv('DJANGO_DEBUG', 'False') == 'True'
ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '127.0.0.1').split(',')
ALLOWED_HOSTS = ['*'] # Разрешаем доступ с любых хостов для разработки
# Отключаем APPEND_SLASH для корректной работы API с Next.js proxy
APPEND_SLASH = False
@@ -39,6 +39,10 @@ CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://127.0.0.1:3001",
"http://localhost:3001",
"http://192.168.219.108:3000",
"http://192.168.219.108:3001",
"http://192.168.219.108:8000",
"http://192.168.219.108:8001",
]
CORS_ALLOW_ALL_ORIGINS = True # Для разработки

View File

@@ -7,9 +7,9 @@ from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('api.urls')), # API endpoints
path('api/users/', include('users.urls')), # User management API
path('users/', include('users.urls')), # User management app
path('links/', include('links.urls')), # Link management app
path('customization/', include('customization.urls')), # Design customization app
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]