Skip to content

Commit

Permalink
deleted app and created frontend and api apps configuring login funct…
Browse files Browse the repository at this point in the history
…ionality
  • Loading branch information
supsa-ak committed Dec 17, 2021
1 parent 9c5b7f2 commit 4e93052
Show file tree
Hide file tree
Showing 39 changed files with 191 additions and 399 deletions.
Binary file modified BudMan/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file modified BudMan/__pycache__/urls.cpython-38.pyc
Binary file not shown.
15 changes: 2 additions & 13 deletions BudMan/settings.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
"""
Django settings for BudMan project.
Generated by 'django-admin startproject' using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -37,7 +25,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app.apps.AppConfig',
'api.apps.ApiConfig',
'frontend.apps.FrontendConfig',
]

MIDDLEWARE = [
Expand Down
3 changes: 2 additions & 1 deletion BudMan/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

urlpatterns = [
path('admin/', admin.site.urls),
path('shop/', include('app.urls')),
path('api/', include('api.urls')),
path('', include('frontend.urls')),
]
File renamed without changes.
3 changes: 3 additions & 0 deletions api/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
4 changes: 2 additions & 2 deletions app/apps.py → api/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.apps import AppConfig


class AppConfig(AppConfig):
class ApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app'
name = 'api'
File renamed without changes.
1 change: 1 addition & 0 deletions api/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from django.db import models
File renamed without changes.
6 changes: 6 additions & 0 deletions api/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.urls import path

from .views import *
urlpatterns = [
# path('', home),
]
Empty file added api/views.py
Empty file.
Binary file removed app/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed app/__pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file removed app/__pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file removed app/__pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file removed app/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file removed app/__pycache__/views.cpython-38.pyc
Binary file not shown.
5 changes: 0 additions & 5 deletions app/admin.py

This file was deleted.

38 changes: 0 additions & 38 deletions app/management/commands/populate_db.py

This file was deleted.

38 changes: 0 additions & 38 deletions app/migrations/0001_initial.py

This file was deleted.

Binary file removed app/migrations/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
29 changes: 0 additions & 29 deletions app/models.py

This file was deleted.

138 changes: 0 additions & 138 deletions app/templates/app/statistics.html

This file was deleted.

12 changes: 0 additions & 12 deletions app/urls.py

This file was deleted.

Loading

0 comments on commit 4e93052

Please sign in to comment.