diff --git a/src/FOSSDB/settings.py b/src/FOSSDB/settings.py index 98a71b3..c28334f 100644 --- a/src/FOSSDB/settings.py +++ b/src/FOSSDB/settings.py @@ -35,6 +35,7 @@ DEBUG = config["DEBUG"] # Application definition INSTALLED_APPS = [ + "main", "account", "fossdb", "django_filters", diff --git a/src/FOSSDB/urls.py b/src/FOSSDB/urls.py index dbe31f6..1c03965 100644 --- a/src/FOSSDB/urls.py +++ b/src/FOSSDB/urls.py @@ -21,6 +21,7 @@ urlpatterns = [ path("admin/", admin.site.urls), path("", include("account.urls")), path("", include("fossdb.urls")), + path("", include("main.urls")), path("", include("django.contrib.auth.urls")), ] if settings.DEBUG: diff --git a/src/apps/main/__init__.py b/src/apps/main/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/apps/main/admin.py b/src/apps/main/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/src/apps/main/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/src/apps/main/apps.py b/src/apps/main/apps.py new file mode 100644 index 0000000..167f044 --- /dev/null +++ b/src/apps/main/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class MainConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'main' diff --git a/src/apps/main/migrations/__init__.py b/src/apps/main/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/apps/main/models.py b/src/apps/main/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/src/apps/main/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/src/apps/main/tests.py b/src/apps/main/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/src/apps/main/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/src/apps/main/urls.py b/src/apps/main/urls.py new file mode 100644 index 0000000..2b187ec --- /dev/null +++ b/src/apps/main/urls.py @@ -0,0 +1,11 @@ +from django.urls import path + +from . import views + +urlpatterns = [ + path("", views.homepage, name="homepage"), + path("contribute/", views.contribute, name="contribute"), + path("news/", views.news, name="news"), + path("dashboard/", views.dashboard, name="dashboard"), + path("help/", views.help, name="help"), +] diff --git a/src/apps/main/views.py b/src/apps/main/views.py new file mode 100644 index 0000000..bc0578d --- /dev/null +++ b/src/apps/main/views.py @@ -0,0 +1,21 @@ +from django.shortcuts import render + + +def homepage(request): + return render(request, "main/homepage.html", {"title": "FOSSDB"}) + + +def contribute(request): + return render(request, "main/contribute.html", {"title": "FOSSDB | Contribute"}) + + +def news(request): + return render(request, "main/news.html", {"title": "FOSSDB | News"}) + + +def dashboard(request): + return render(request, "main/dashboard.html", {"title": "FOSSDB | Dashboard"}) + + +def help(request): + return render(request, "main/help.html", {"title": "FOSSDB | Help"}) diff --git a/src/templates/fossdb/index.html b/src/templates/fossdb/explore.html similarity index 100% rename from src/templates/fossdb/index.html rename to src/templates/fossdb/explore.html diff --git a/src/templates/layout.html b/src/templates/layout.html index 62c5c25..63e09ce 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -21,7 +21,8 @@ width="40" src="{% static 'img/icons/logo.svg' %}" alt="logo" /> - fossdb + fossdb