Skip to content

Django is sweet, fast, simple, amazing, inspirationšŸ¤¤! Forget everything i just said... Just follow up.

Notifications You must be signed in to change notification settings

yokwejuste/django_tuto_begin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

5 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

HELLO WORLD!

Here is a new Django Tutorial for beginners, create an issue, watch me and follow me, for more info email me!

What's django?

Django is web development framework that assists in building and maintainning quality web applications. Django helps eliminate repetitive tasks making the 
development process an easy and time saving experience. This tutorial gives a complete understanding of Django.     
As a beginner in Django some prerequisites are needed by the said student!
  • HTML at the tips\

  • CSS; if possible with a framework
    As for me, I use

    • BOOTSTRAP
    • TAILWIND
    • ...mail may for better ones if so.
  • Basic notions in OOP: control structures, data structures and variables, classes, objects and

  • Javascript, which the most common language between programmers
    NO worry books will be provided for your learning.

Feel free to offer me a coffee if satisfied with this repo content.

###Create a new directory where your django projects will lie.

for example;
Folder for project

To install django, use the following commands:

pip install django

pip install django-admin

installation procedure

To be franc, dude don't be exited, you just entered now another step in your python dev journey!

I guess you were, šŸ˜‚ feel free mehn just kiding! Coding is just done for fun. Visualise it, capture the moment and reproduce.

I want you to ask yourself a question now;

Why do you want to program or code, what ever be its name?

To start a new app or just an app in your django newly created projects, run the command

For Windows run by default ###python manage.py startapp app_name

For linux and macOS use this ###python3 manage.py startapp app_name

This is the step where you check if your installations where successfully done. We simply do this with: ###python manage.py runserver

and to stop the server feel free to press ctrl + c

By default, django runs with the default address of http://127.0.0.1:8000/, keeping in mind that it can fully be
customise. Below is an illustration of what it gives as output.

django

Let's move ahead customising our files writing our Almighty "HELLO WORLD!" text

  • Click Here to view my Settings.py file.
  • Click Here to view my main project urls.py file.
  • Click Here to view my part_one app models.py file.
  • Click Here to view my part_one app admin.py file.
  • Click Here to view my part_one app urls.py file.
  • Click Here to view my part_one app urls.py file.
  • Click Here to view my app templates files file.

    A link to my media folder Just here

By default the best file skeleton for a django project with one app is the diagram below;


django files skeleton

##initialisation of the admin interface

python3 manage.py createsuperuser where you will have some prompts;

Admin Name: admin
Email: admintobe@amail.fr (Not real just for fun)
Password: django-github

Admin creation

Browser result http://127.0.0.1:8000/admin/

Admin creation

On track? Let's move on!

Get some tips

In the template folder in this repo, create as many html files as you want or šŸ¤” as necessary,

About

Django is sweet, fast, simple, amazing, inspirationšŸ¤¤! Forget everything i just said... Just follow up.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published