Table of Contents
The website features user authentication, profile management, item listings and ratings, messaging between sellers and buyers, search functionality, a shopping cart, media storage and PostgreSQL database management.
The app lets you create an account and management items, you want to sell. Although, the feature "checkout" isn't available. This was a project built for the purpose of understanding the features of 'Django'. A 'practice project', if you will ✌🏾
- Fork the Project
- Clone project to local device
- Create a virtual evironment and install the packages (
pip install -r requirements.txt
) - 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
Some of my struggles
- I don't know if you would ever encouter this, but I struggled for a week or so trying to install
django-cloudinary-storage
package with python 3.12, the problem had something to do with 'building wheel', I tried a lot of solutions, only one worked for me. I installed python 3.10 and used that to install the package globally, and then I tried installing the package again, locally, in my virtual environment with python 3.12 and it worked, why? lol I don't know, shhhhh don't ask questions, if it ain't broken no more leave it lol. - To allow your app/website communicate with the postgresql database, you need the engine
django.db.backends.postgresql_psycopg2
but this won't work withoutpip install psycopg2-binary
. Initially I was using sqlite3 for database, then I launched the website on vercel and I met the 500 internal server error. For this I can suggest 3 solutions
- Make sure you have included your environment variables in vercel
- Make sure you have this
psycopg2-binary
installed - Vercel doesn't support sqlite databases, because it is a serverless environment. Read more about this here