Picshare is a image sharing web application consisting of a complete login/registration system, password change and reset, user profile, and ability to share images directly from other websites, developed using Python 3.8
, Django 4.1
.
- User authentication and registration
- Login via email or username
- Login with Facebook or Google account
- Password change
- Password reset using email
- Change profile picture
- Follow/unfollow users
- Share images from your pc
- Share images directly from any other website using bookmarklet
- Like/unlike posts
- Comment on post
python -m venv <name>
. <name>/Scripts/activate
$ git clone https://github.com/py-piyush/picshare-social-media-django.git
$ cd picshare-social-media-django
$ pip install -r requirements.txt
If you don't want to use social authentication, comment out social auth keys in
settings.py
and skip to step 5 → 7
-
Locate hosts file in your pc, on Windows, the hosts file is located at
C:\Windows\System32\Drivers\etc\hosts
, and add following line to it127.0.0.1 mypchost.com
Create .env file in same directory as settings.py
Add facebook and google auth keys
# Facebook auth keys
SOCIAL_AUTH_FACEBOOK_KEY="XXX"
SOCIAL_AUTH_FACEBOOK_SECRET="XXX"
# Google auth keys
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET="XXX"
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY="XXX"
$ python manage.py migrate
Go to directory where manage.py
exists, and run following command
$ python manage.py runserver_plus --cert-file --cert.crt
Go to https://mypchost.com:8000/account
.
Your browser will show a security warning because you are using a self-generated certificate. Click on Advanced and continue to site
$ python manage.py runserver
Go to http://localhost:8000/account