Renamed membersystem => project (because of tab completion nuisance) and profiles => users

This commit is contained in:
Benjamin Bach 2019-08-31 19:41:35 +02:00
parent 2181f818b1
commit 35d8438d66
20 changed files with 14 additions and 20 deletions

2
.gitignore vendored
View File

@ -2,5 +2,5 @@ __pycache__/
*.pyc *.pyc
*.sw* *.sw*
db.sqlite3 db.sqlite3
membersystem/settings/local.py project/settings/local.py
.pytest_cache .pytest_cache

View File

@ -3,7 +3,7 @@ import os
import sys import sys
if __name__ == "__main__": if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "membersystem.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError as exc: except ImportError as exc:

View File

@ -1,5 +0,0 @@
from django.apps import AppConfig
class ProfilesConfig(AppConfig):
name = 'profiles'

View File

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View File

@ -1,5 +1,4 @@
"""Context processors for the membersystem app.""" """Context processors for the membersystem app."""
from django.contrib.sites.shortcuts import get_current_site from django.contrib.sites.shortcuts import get_current_site

View File

@ -35,8 +35,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django.contrib.sites', 'django.contrib.sites',
'membersystem', 'users',
'profiles',
'accounting', 'accounting',
'membership', 'membership',
] ]
@ -51,12 +50,12 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'membersystem.urls' ROOT_URLCONF = 'project.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [], 'DIRS': [os.path.join(BASE_DIR, "project", "templates")],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
@ -64,7 +63,7 @@ TEMPLATES = [
'django.template.context_processors.request', 'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'membersystem.context_processors.current_site', 'project.context_processors.current_site',
], ],
}, },
}, },
@ -75,7 +74,7 @@ AUTHENTICATION_BACKENDS = (
'allauth.account.auth_backends.AuthenticationBackend', 'allauth.account.auth_backends.AuthenticationBackend',
) )
WSGI_APPLICATION = 'membersystem.wsgi.application' WSGI_APPLICATION = 'project.wsgi.application'
# Database # Database

View File

@ -47,4 +47,3 @@
</footer> </footer>
</body> </body>
</html> </html>

View File

@ -10,6 +10,6 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "membersystem.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
application = get_wsgi_application() application = get_wsgi_application()

View File

@ -1,5 +1,5 @@
[pytest] [pytest]
testpaths = . testpaths = .
python_files = tests.py test_*.py *_tests.py python_files = tests.py test_*.py *_tests.py
DJANGO_SETTINGS_MODULE = membersystem.settings DJANGO_SETTINGS_MODULE = project.settings
#norecursedirs = dist tmp* .svn .* #norecursedirs = dist tmp* .svn .*

5
users/apps.py Normal file
View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'