A basic Django website for first-time learners.
For detailed documentation, visit: Django Documentation
- Install Python. To see which version is compatible, visit: Django FAQ
-
Create a virtual environment:
python3 -m venv myvenv
-
Activate the virtual environment:
source myvenv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Deactivate the virtual environment when done:
deactivate
-
Create a virtual environment:
python -m venv myvenv
-
Activate the virtual environment:
myvenv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Deactivate the virtual environment when done:
deactivate
Once Django is installed, you need to create the database tables for the application:
Make migrations for your user app:
python manage.py makemigrations user
Apply the migrations to the database:
python manage.py migrate
Before coding, you need to install Django in your virtual environment:
pip install django
To fetch movie data from OMDB, you need to create an API key. Follow these steps:
- Go to the OMDB API website: https://www.omdbapi.com
- Click on the API Key tab.
- Scroll down to the Pricing section and select the Free or Paid plan depending on your usage.
- Sign up for an account using your email.
- Verify your email and log in.
- Navigate to the API Key section in your profile.
- Copy your generated API key.
To fetch cast names and images of a movie from TMDB, you need to create an API key. Follow these steps:
- Go to the OMDB API website: https://www.themoviedb.org/settings/api
- You should be logged in the access this page. If not then signup or login.
- In the 'Request API key' section click on the given link.
- Choose the 'Developer' option
- Accept the license aggrement.
- Fill the required details in the form.
- Copy your genearted 'API Key'(not the API read access token).
- Create a .env file in the root directory of your project, if created already then skip to step 2:
touch .env
- Add your TMDB API key to the .env file as:
TMDB_API_KEY=<your_api_key>
While raing the pull request, add ypur name to the CONTRIBUTORS.md file
While adding packages, update requirements.
pip freeze > requirements.txt
- Let most of the email setting as they are.
- For EMAIL_HOST_USER & DEFAULT_FROM_EMAIL set the mail account you want to send mail from
- Go to the google manage account for the email you set
- Enable 2 step verification
- Generate a HOST_PASSWORD from app password in the gmail account
- set EMAIL_HOST_PASSWORD to the app password you generated
Make sure of the spellcheck.
Might not work with proxy so try using you cellular network
- Signup/Login
- Show Listing
- Show Ticket Booking
- Adding New Show
- Movie Listing
- Adding New Movie
- Movie Details
- Movie Reviews
User signup and login along with custom toast notification
to deal wiht different fallback cases
List of all available shows along with movie meta data such as
Movie title, Show timing, Poster and option to book show ticket
Display page list of all available show seats indicated via
different colors for availability.
Option to confirm ticket booking or go
back to shows page
Form page to add new show from available movies, show timeing
&
unique UUID
List of all available movies along with movie meta data such as
Movie title, discription, Poster, imdb & Critic rating via omdbapi and
option to add add personal ratings
Form page to fetch and add movie information using the
omdbapi along with realtime suggestion
Page with detail discription about the movie.List of meta data about
movie including the cast info & the option to add review
Page related to movies facilitating the user to add their movie
experience only after they have attended the movie session.
Also list of reviews from all users with mild Censorship against
swear words