This website was build under a competition organised by the Programming Club of School of Engineering and Applied Science (SEAS), Ahmedabad University (AU)
- Django
- JavaScript
- HTML
- CSS/SCSS
- Bootstrap
- JQuery
- PostgreSQL (To install postgres click on it)
-
Clone
git clone https://github.com/NamitS27/PClub-Website.git
-
Database (If you are using Postgres)
- Settings.py code
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': '<database_name>', 'USER': '<new_user>', 'PASSWORD': '<password>', 'HOST': 'localhost', 'PORT': '', } }
- Creating the databse
CREATE DATABASE <database_name>;
- Creating a user for the database
CREATE USER <new_user> WITH PASSWORD '<password>';
- Altering roles for timezones,encoding and default transaction isolation
ALTER ROLE <new_user> SET client_encoding TO 'utf8'; ALTER ROLE <new_user> SET default_transaction_isolation TO 'read committed'; ALTER ROLE <new_user> SET timezone TO '<timezone>';
-
Project
-
Creating Virtual Environment
virtualvenv myvenv
-
Install the required packages to run the project
pip install requirements.txt
-
Following are the commands to create the tables
python manage.py makemigrations
- If the above part doesn't work, do makemigrations for all the apps individually
python manage.py makemigrations <app_name>
python manage.py migrate
-
Create Super User for the Admin Panel (Enter username/password as per your wish)
python manage.py createsuperuser
-
Final command to run the server
python manage.py runserver
-
-
CSS
-
JavaScript
- https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
- https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/TweenMax.min.js
- https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js
- https://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.4/jquery.touchSwipe.min.js
- https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js
Any educational institutions who wants a website to showcase the activities done by the club.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request