Skip to content

Commit

Permalink
feat: move modules to own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew4Coding committed Oct 11, 2024
1 parent a4fa590 commit 4ffee6f
Show file tree
Hide file tree
Showing 26 changed files with 39 additions and 29 deletions.
10 changes: 0 additions & 10 deletions auth/urls.py

This file was deleted.

11 changes: 0 additions & 11 deletions auth/views.py

This file was deleted.

3 changes: 2 additions & 1 deletion eventyog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'main',
'modules.main',
'modules.authentication',
'whitenoise.runserver_nostatic'
]

Expand Down
4 changes: 2 additions & 2 deletions eventyog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('main.urls')),
path('auth', include('auth.urls'))
path('', include('modules.main.urls')),
path('auth', include('modules.authentication.urls'))
]
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions auth/apps.py → modules/authentication/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.apps import AppConfig


class AuthConfig(AppConfig):
class AuthenticationConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'auth'
name = 'modules.authentication'
File renamed without changes.
3 changes: 3 additions & 0 deletions modules/authentication/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
File renamed without changes.
8 changes: 8 additions & 0 deletions modules/authentication/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.urls import path
from modules.authentication.views import *

app_name = 'main'

urlpatterns = [
path('', login, name='main'),
]
20 changes: 20 additions & 0 deletions modules/authentication/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from django.shortcuts import render

# Create your views here.
def login(request):
pass

def logout(request):
pass

def register(request):
pass

def profile(request):
pass

def edit_profile(request):
pass

def change_password(request):
pass
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion main/apps.py → modules/main/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

class MainConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'main'
name = 'modules.main'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions main/urls.py → modules/main/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.urls import path
from main.views import *
from auth.views import *
from modules.main.views import *

app_name = 'main'

Expand Down
File renamed without changes.

0 comments on commit 4ffee6f

Please sign in to comment.