Skip to content

Commit

Permalink
Merge branch 'migrating-pages' of https://github.com/imApoorva36/corpus
Browse files Browse the repository at this point in the history
… into migrating-pages
  • Loading branch information
imApoorva36 committed Dec 21, 2023
2 parents 85d6e92 + 031fa8c commit 51786fd
Show file tree
Hide file tree
Showing 11 changed files with 596 additions and 105 deletions.
97 changes: 0 additions & 97 deletions corpus/config/migrations/0001_initial.py

This file was deleted.

Empty file.
1 change: 1 addition & 0 deletions corpus/corpus/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
urlpatterns = [
path("admin/", admin.site.urls),
path("accounts/", include("accounts.urls")),
path("", include("pages.urls")),
path("embedathon/", include("embedathon.urls")),
path(
"", include("pages.urls")
Expand Down
12 changes: 5 additions & 7 deletions corpus/pages/urls.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from django.urls import path

from .views import about_us
from .views import index
from .views import sig
from pages import views

urlpatterns = [
path("", index, name="index"),
path("about_us/", about_us, name="about_us"),
path("<str:sig_name>/", sig, name="sig"),
path("", views.index, name="index"),
path("about_us/", views.about_us, name="about_us"),
path("impulse", views.impulse, name="impulse"),
path("sig/<str:sig_name>/", views.sig, name="sig"),
]
8 changes: 8 additions & 0 deletions corpus/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ def about_us(request):
)


def impulse(request):

return render(
request,
"pages/impulse.html",
)


def sig(request, sig_name):
sig = get_object_or_404(SIG, name=sig_name)
return render(
Expand Down
2 changes: 1 addition & 1 deletion corpus/templates/embedathon/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h2 class="card-title">Light Weight Cryptography for IoT</h2>
<span>By P.V. Ananda Mohan</span>
<span>Technology Advisor at Center for Development of Advanced Computing (CDAC)</span>
<div class="card-actions">
<strong>3rd Jan, 2024 at 666666</strong>
<strong>3rd Jan, 2024 at 6:00PM</strong>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 51786fd

Please sign in to comment.