Browse Source

Added missing stuff.

development-ci
Franco Masotti 2 years ago
parent
commit
9dc6f9f03e
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 10
      django_futils/settings.py
  2. 21
      manage.py

10
django_futils/settings.py

@ -65,12 +65,14 @@ LANGUAGES = [
# Application definition
INSTALLED_APPS = [
'django.contrib.contenttypes',
'simple_history',
'vies',
'phone_field',
'django_countries',
'django.contrib.gis',
'djmoney',
'django_extensions',
'django_futils.apps.DjangoFutilsConfig',
'django.contrib.admin',
'django.contrib.auth',
@ -92,10 +94,10 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
#AUTHENTICATION_BACKENDS = [
# # Django ModelBackend is the default authentication backend.
# 'django.contrib.auth.backends.ModelBackend',
#]
AUTHENTICATION_BACKENDS = [
# Django ModelBackend is the default authentication backend.
'django.contrib.auth.backends.ModelBackend',
]
#ROOT_URLCONF = 'grantme.urls'

21
manage.py

@ -0,0 +1,21 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_futils.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?") from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
Loading…
Cancel
Save