feat: added tailwind
This commit is contained in:
@@ -9,6 +9,7 @@ CORS_ORIGIN_ALLOW_ALL = DEBUG
|
||||
|
||||
if not DEBUG:
|
||||
import socket
|
||||
|
||||
ALLOWED_HOSTS.append(socket.gethostbyname(socket.gethostname()))
|
||||
|
||||
|
||||
@@ -29,11 +30,13 @@ THIRD_PARTY_APPS = [
|
||||
"watchman",
|
||||
"drf_spectacular",
|
||||
"rest_framework_simplejwt",
|
||||
"tailwind",
|
||||
]
|
||||
|
||||
PROJECT_APPS = [
|
||||
"files",
|
||||
"shop",
|
||||
"theme",
|
||||
"tpv",
|
||||
"users",
|
||||
]
|
||||
@@ -213,3 +216,5 @@ SIMPLE_JWT = {
|
||||
"SLIDING_TOKEN_OBTAIN_SERIALIZER": "rest_framework_simplejwt.serializers.TokenObtainSlidingSerializer",
|
||||
"SLIDING_TOKEN_REFRESH_SERIALIZER": "rest_framework_simplejwt.serializers.TokenRefreshSlidingSerializer",
|
||||
}
|
||||
|
||||
TAILWIND_APP_NAME = "theme"
|
||||
|
||||
@@ -14,8 +14,8 @@ if os.path.exists(env_file):
|
||||
SECRET_KEY = env.str("SECRET_KEY", "this-is-the-default-secret-key")
|
||||
DEBUG = env.bool("DEBUG", True)
|
||||
|
||||
CORS_ORIGIN_WHITELIST = env.str('CORS_ORIGIN_WHITELIST', default='').split(',')
|
||||
CSRF_TRUSTED_ORIGINS = env.str('CSRF_TRUSTED_ORIGINS', '').split(',')
|
||||
CORS_ORIGIN_WHITELIST = env.str("CORS_ORIGIN_WHITELIST", default="").split(",")
|
||||
CSRF_TRUSTED_ORIGINS = env.str("CSRF_TRUSTED_ORIGINS", "").split(",")
|
||||
|
||||
DATABASE_URL = env.db_url("DATABASE_URL", "sqlite:///db.sqlite3")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user