Skip to content
First steps with Django!
Python HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
blog
newproject
.gitignore
README.md
komendy.txt
manage.py

README.md

Django Girls Workshops - 19-20.01.2018, Warsaw

First steps with Django!

**based on https://tutorial.djangogirls.org

**app is deployed on PythonAnywhere:


After Workshops :) - commands:

VIRTUALENV

python -m venv myvenv

myvenv\Scripts\activate

INSTALL:

python3 -m pip install --upgrade pip

pip install django

lub

pip install -r requirements.txt (jeśli projekt posiada więcej bibliotek zdefiniowanych w pliku requirements.txt)

GIT:

git config --global user.name "Radek"

git config --global user.email rrrr@rr.pl

git clone git@github.com:rbartosinski/djangogirls_test.git

git add .

git commit -m "Djangogirls"

git push

DJANGO:

django-admin.exe startproject newproject .

python manage.py runserver

http://127.0.0.1:8000/

python manage.py migrate

python manage.py startapp blog

python manage.py makemigrations blog

python manage.py migrate

python manage.py createsuperuser

CSS - PYTHONANYWHERE BASH:

workon [wpisz.tu.swoj.login].pythonanywhere.com

python manage.py collectstatic

You can’t perform that action at this time.