Django

College Event Registration Website

CampusConnect Introduction and Setup Configuring settings file for template, static and media files Setting up Tailwind Creating Custom User Model Creating Super User for CampusConnect Registering Custom User Model Search and Filter for User Model Serving Media Files During Development Categorizing Departments Linking Department with HOD Creating Abstract Model for Event Creating Model for Workshop Customizing Admin Page for Workshop Update in Model AbstractEvent Adding Instructor for Workshop Instructor Model Admin Page Adding Poster Field in Abstract Event Providing Access to HOD Access Update for HOD Restricting HOD Access to Particular Department AbstractEvent On Spot Registration Field Creating Workshop Object Creating and Linking Home Page Displaying Workshop on Home Page Styling Home Page Adding Workshop Detail Page Link Workshop Detail Page Workshop Detail Page Styling Workshop Instructor Details Workshop Detail Contact Contact Admin Page Many to Many Field for Contact Displaying Contact on Workshop Detail Page Adding Title for Workshop Detail Page Adding Gallery for Workshop Workshop Gallery Admin Page Displaying Gallery Images on Website Through Context Displaying Gallery Images on Website through template tags Authentication for users User Registration User Registration Submission Logout Functionality For User Login Functionality for User Model For Workshop Registration Workshop Registration Admin Page Register Workshop Function Register Button in Workshop Page Validations Before Workshop Registration Workshop Registration Closed Validaiton User Already Registered for Workshop Validation Workshop Registration Report From Admin Page Export using Library in Django Admin Extending Abstract Event for Hackathons

Authentication for users

As, now all the workshop details are being displayed on the website, we can start allowing users to register for the workshop. But before this, we must verify that the users who are registering for the workshop are registered users on the website. For this, we would need to implement the user registration and login functionality.

We shall start by linking the urls of authentication app with the main project.

For this we would open the CampusConnect/urls.py and add the code to link with authentication app.

urlpatterns = [
    path('admin/', admin.site.urls),
    path("", include('event.urls')),
    path("", include("authentication.urls")),
]

After this is done, you would need to create a urls.py file inside the authentication app and add the following code.

from django.urls import path

urlpatterns = [
    
]

By doing this all '' paths would be linked to the authentication app.

The authentication/urls.py file would be further edited to render the specific web pages on visiting a specific url.