A simple review form using Django model forms to get comments from people visiting the site.
How to add this to your Project
- Install django and django-admin and start a new django project (Google how to start a new django project if you are new to this: https://docs.djangoproject.com/en/2.2/intro/tutorial01/)
- Clone this repo by getting zip or using git clone.
- Copy the review folder into your project folder.
- Open settings.py file of your project and add review to INSTALLED_APPS.
- Copy urls from urls.py in review_form folder and add them to your projects urls.py or include review_form.urls to in your urls.py (You can name the urls according to your choice)
- Makemigrations, and migrate and then runserver using following commands : python manage.py makemigrations python manage.py migrate python manage.py runserver (if this gives any error, make sure you are in right directory and all the requirements are fullfilled, use python3 instead of python if you also have python2 installed in your system.
- Feel free to contact me, if you still have any difficulty runnning this.
If you just wanna check it out
- Clone the repository.
- Intsall the requirements from requirements.txt .
- Makemigrations, and migrate and then runserver using following commands : (Use python3 instead of python if you also have python2 installed in your system) python manage.py makemigrations python manage.py migrate python manage.py runserver
- The project should run on '127.0.0.1:8000' on your browser.