django server settings
This commit is contained in:
parent
df31c1aa49
commit
84879b89d1
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,4 +8,5 @@
|
|||||||
# Python cache:
|
# Python cache:
|
||||||
__pycache__/
|
__pycache__/
|
||||||
# Tests:
|
# Tests:
|
||||||
.coverage
|
.coverage
|
||||||
|
*.sqlite3
|
12
src/django_project/asgi.py
Normal file
12
src/django_project/asgi.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
"""
|
||||||
|
For more information on this file, see
|
||||||
|
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
from django.core.asgi import get_asgi_application
|
||||||
|
|
||||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_project.settings')
|
||||||
|
|
||||||
|
application = get_asgi_application()
|
@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
|
|||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
'django_stockfin_db',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
|
12
src/django_project/wsgi.py
Normal file
12
src/django_project/wsgi.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
"""
|
||||||
|
For more information on this file, see
|
||||||
|
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_project.settings')
|
||||||
|
|
||||||
|
application = get_wsgi_application()
|
@ -1,3 +1,8 @@
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
# Register your models here.
|
from django_stockfin_db.models import FinancialPosition
|
||||||
|
|
||||||
|
|
||||||
|
@admin.register(FinancialPosition)
|
||||||
|
class FinancialPositionAdmin(admin.ModelAdmin):
|
||||||
|
pass
|
||||||
|
@ -84,6 +84,7 @@ class CompanyName(AbstractBaseModel):
|
|||||||
on_delete=CASCADE
|
on_delete=CASCADE
|
||||||
)
|
)
|
||||||
name = CharField(
|
name = CharField(
|
||||||
|
max_length=1024,
|
||||||
db_index=True,
|
db_index=True,
|
||||||
verbose_name=_("Name")
|
verbose_name=_("Name")
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user