English | Russian
A site for publishing tutorials with a clean design and responsive interface.
- Django
- Web framework
- GitHub repo
- Python-Markdown
- Converts string to HTML
- GitHub repo
- python-dotenv
- Reads key-value pairs from a .env file and can set them as environment variables
- GitHub repo
- mini.css
- Minimal, responsive, style-agnostic CSS framework
- GitHub repo
- Go to your project folder and clone the repository locally
# go to the folder where you want to clone the repository $ cd /path/to/project/folder/ # clone this repository $ git clone https://github.com/Michae1Weiss/django-website-for-tutorials.git
- Go into the repository folder
# go to the folder $ cd django-website-for-tutorials
- Create a virtual environment for Python and activate it.
About virtual environment (in English)
Python version 3.6+ must be installed on your system. Download python
# create a virtual environment $ python3 -m venv venv # [!] python will create a `venv` folder # activate the virtual environment $ source venv/bin/activate
On the command line you should see
(venv)in front of the name. To exit the environment writedeactivate. - Do a database migration About migrate command
# This will create a database file `db.sqlite3` with all the necessary tables $ python manage migrate - Collect static files. About collectstatic command
# This will pull all the necessary static files into one common `static` folder in the root of the project. $ python manage collectstatic - Run the server. About runserver command
# By default launches the server locally: http://127.0.0.1:8000 $ python manage runserver - Create a superuser. About createsuperuser command
# You need it to be able to create lessons in the admin panel. $ python manage createsuperuser - Congratulations, now you can use this website :)
Practice makes perfect. ~ Traditional Proverb
- You can’t learn to code by reading about it. The only way to learn is by actually coding.
- Don’t worry about learning the wrong thing. Any language that you pick will at least help you learn the concepts central to programming.
- Once you master one language, picking up a second language is much easier. So don’t let an analysis paralysis prevent you from ever starting.
- Using Google to find an answer isn’t cheating. Neither is looking at code that you’ve written in the past.
- Screwing up is normal, and you need to have the attitude that it’s ok to make mistakes.
- There are 4 things that you can do to make sure that you’re asking for help in the right way:
- Overcommunicate details that you see. Feel free to include additional details someone might want to know, but also might not be needed.
- Explain exactly what you think should be happening.
- Explain exactly what is actually happening.
- Explain why you think it should be working differently.
- Don't think you have to be a mathematical genius to be good at programming.
- If you’re just starting to learn, you need to be open to changing your code to get it to a better state.
- In programming, it’s ok to accept the facts as you learn them.
- You don’t need to go down every rabbit hole in search of the answer to “how come it’s like that?”
- You might feel like you have no idea what you’re doing sometimes. And that’s ok.
- Learning to code is a lot of work. So the worst thing you can do is give up right before you’re about to see results.