changed signup to accounts
finished fixing linting
This commit is contained in:
parent
4ab42bf3de
commit
d8853cee1c
11 changed files with 13 additions and 12 deletions
5
accounts/apps.py
Normal file
5
accounts/apps.py
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class Accounts(AppConfig):
|
||||||
|
name = 'accounts'
|
||||||
|
|
@ -2,7 +2,7 @@ import os
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'DIRS': [os.path.join(BASE_DIR, 'photo21/signup/templates')],
|
'DIRS': [os.path.join(BASE_DIR, 'photo21/accounts/templates')],
|
||||||
'APP_DIRS': True,
|
'APP_DIRS': True,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
@ -2,5 +2,5 @@ from django.urls import path
|
||||||
|
|
||||||
from .views import signup
|
from .views import signup
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', signup, name='signup'),
|
path('', signup, name='accounts'),
|
||||||
]
|
]
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
from django.http import HttpResponseRedirect
|
from django.http import HttpResponseRedirect
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'photologue_custom',
|
'photologue_custom',
|
||||||
'photologue',
|
'photologue',
|
||||||
'signup',
|
'accounts',
|
||||||
'sortedm2m',
|
'sortedm2m',
|
||||||
'taggit',
|
'taggit',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ from django.contrib import admin
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls.static import static
|
from django.conf.urls.static import static
|
||||||
from django.contrib.auth.decorators import login_required
|
|
||||||
|
|
||||||
from .views import IndexView
|
from .views import IndexView
|
||||||
|
|
||||||
|
|
@ -30,7 +29,7 @@ urlpatterns = [
|
||||||
path('i18n/', include('django.conf.urls.i18n')),
|
path('i18n/', include('django.conf.urls.i18n')),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
path('accounts/signup/', include('signup.urls'))
|
path('accounts/registration/', include('accounts.urls'))
|
||||||
]
|
]
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
from django.apps import AppConfig
|
|
||||||
|
|
||||||
class Signup(AppConfig):
|
|
||||||
name = 'signup'
|
|
||||||
4
tox.ini
4
tox.ini
|
|
@ -18,7 +18,7 @@ deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
coverage
|
coverage
|
||||||
commands =
|
commands =
|
||||||
coverage run --omit='photo21/wsgi.py' --source=photo21,photologue_custom ./manage.py test
|
coverage run --omit='photo21/wsgi.py' --source=photo21,photologue_custom,accounts ./manage.py test
|
||||||
coverage report -m
|
coverage report -m
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
|
|
@ -32,7 +32,7 @@ deps =
|
||||||
pep8-naming
|
pep8-naming
|
||||||
pyflakes
|
pyflakes
|
||||||
commands =
|
commands =
|
||||||
flake8 photo21 photologue_custom
|
flake8 photo21 photologue_custom accounts
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = W503, I100, I101
|
ignore = W503, I100, I101
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue