Hi, this is all about Django , a web framework for perfectionists with deadlines! This is learning by doing: I am using openclassrooms, a leading E-learning Platform!:rocket:
Go to Fotoblog Site Course
A photography collective is looking
for a way to share its work with the world.
They want to be able to upload their photos online
and also create blog posts about them.
They have asked you, a Django developer,
to build a web application that allows
them to do just that.
They need to have two tiers of users
- subscribers and creators - and ensure that
only the creators can create content.
This content then needs to be shared in a social feed,
with subscribers choosing which creators they want to follow.
I versioned every advance I made during the course (v3 here :).
For Version 2 please go to this fotoblog_v2
Go to tags and download V3 working code package.
A simple web application that allows you to uploads photos, maintain a database with references to them, list them with their metadata, and more.
- Installation on vscode
- cloning facebook, boldly and unpretentiously - Mini-Facebook
- Features of v.3.0 : vscode complete working code, Bootstrap, Crispy, Admin Dashboard, and more...
- ✨Magic ✨ Happens ✨!
FotoBlog_v3 requires vscode IDE v1.75.1 to run.
Clone Git Tag by using the following syntax to clone a v3.0 tag:
git clone -b [tag_name] [repository_url]
git clone -b v3.0 https://github.com/giljr/fotoblog_v3.git
The command clones tag v3.0 from the specified repository URL.
For development environments...
pip install -r requirements.txt
python ./manage.py migrate --run-syncdb
python ./manage.py createsuperuser
python ./manage.py runserver
You can now browse to the following link to start exploring the sample.
http://localhost:8000/
The screenshots are available in this directory:
docs/fotoblog_v3:
1 > The sample app will open the:
sign in page
2 > Click 'Sign Up Now!' and the app will open the:
sing up page
3 > As soon as you loged in, the:
Upload a Photo page appears
will be opened;
4 > Choose a photo and submit in this form :
Upload photo
5 > You will see a page like this one:
home page
Also supports the Django admin which is available. Verify the deployment by navigating to your server address in your preferred browser.
127.0.0.1:8000/admin
We recommend and support the usage of virtualenv. All you need to do is create a new virtualenv (if necessary):
python -m venv ENV
And then just activate it:
source ENV/bin/activate
Import all the dependencies:
run pip freeze > requirements
Now you can go ahead with the instructions above.
We use https://dbeaver.io/, a Free Universal Database Tool!
Check it out!
@author: Gilberto Jr @site: jungletronics @url: https://medium.com/jungletronics @date: feb, 2023
Bye!
MIT
Free Software, 2023 Jungletronics!