Topic ratings are back with the new {{Gradingbox}}. Please read the documentation for how to use it correctly before applying it to pages.

This page is a ruby

SNCA:Django

From Soyjak Wiki, the free ensoyclopedia
(Redirected from Django)
Jump to navigationJump to search
>SAAR! SAAR! uhhhh there's a Paki looking at me through this glass ya kuchh is tarah ka
SAAR! This train collision was caused by PakistanisDon't redeem any card (You) see. Shill H1B visa while dodging trains to make Bharat a superpooper!

This topic attracts ASPIESPlease remind those obsessed with this SNCA to breathe deeply from the toilet bowl.
This page is a stub or is unfinished. (You) WILL help by expanding it.
This page is a ruby. (You) VILL help by further refining it into a gem.

Django is a python library which is used to make web applications. websites such as Pinterest and Instagram are made using Django.

Setting up a Django project.[edit | edit source]

To set it up, you need to first have python installed on your computer. If you are on a mac, python comes pre installed.


Then, create a folder where you will put your project. The first thing after this is, to make a virtual environment. Simply switch to the directory of your folder in your terminal and type in:

python -m venv myworld

Once you've made your VE, you have to activate it. The point of a virtual environment is to have the packages that you need for your Django project separated from everything else on your computer. You can then activate the VE with this command:

Windows: myworld\Scripts\activate.bat

UNIX/macOS: source myworld/bin/activate


Once the virtual environment is set up, you have to install django:

pip install django


And then after all that, you have to make a Django project with the following command:

django-admin startproject project_name_goes_here

After this, you want to move the directory to the Django project (main_folder/django_project)

Creating a database.[edit | edit source]

The first thing to do after you have made your Django project is to make the database: without moving directory, type this in:

python manage.py migrate

This will create a database.

Viewing the project.[edit | edit source]

To view the actual project, type in python manage.py runserver

And then go to your local host, where you will see the default Django page.

Django is part of a series on
Computing

➜ /languages

├ /markup/ HTMLCSSXML
├ /low_level/ AssemblyCC++C#Holy CRust
├ /high_level/ JavaGoPHPPythonSQLBashJavaScriptPowerShellActionScriptScratchRubyLuaP
└ /tutorials/ CC++C#JavaRust

➜ /software

├ /forums/ nusoiVichanYotsubaOpenYotsubaXenForojschan
├ /operating_systems/ WindowsLinuxUbuntuLinux MintAndroidTempleOSBSD
├ /applications/ Web BrowserPhotoshopFlashMS PaintIRCGIMPPaint.NET
├ /dev/ Free-software licenseGame developmentVim
└ /misc/ BabybotMcChallengeCAPTCHASystemdRAIDRicing4getSnarkysnappydoxingtool.batJS PaintSoyjak Party Enhancedshimmie2MediaWikiEmaildjango

➜ /cyb

➜ /misc

├ /file_formats/ GIFMIDISVGWEBMWEBP
└ /hardware/ ThinkPadChromebooksWiFiRaspberry pi

➜ /ai

SOYNY