djangogirlstaipei / eshop

Licence: MIT License
No description, website, or topics provided.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
Nginx
273 projects
CSS
56736 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Django 實戰

自己的購物網站自己做

Requirements

  • Python 3.5+
  • Django 1.10+

Course Slides

第一堂 - 商品管理

第二堂 - 版本管理(本次課程使用 Git-it 教學)

第三堂 - 商品呈現

第四堂 - 雲端部署

第五堂 - 前端美化

第六堂 - 會員管理

How to connect us

[email protected]

Getting Started

Set up a Virtual Environment

Built-in venv

(Windows)

python -m venv VENV
VENV\Scripts\activate

(Linux / OS X)

python3 -m venv VENV
source VENV/bin/activate

virtualenvwrapper

You need to specify your python path when creating the virtual environment:

mkvirtualenv --python=$(which python3) eshop

Install Django

Use pip:

pip install django

Get Ready for Development

cd into the bookshop directory:

cd bookshop

And migrate the database:

python manage.py migrate

Now you’re all set!

Run the Development Server

python manage.py runserver

Then you can open the website: http://localhost:8000/

Enter the Django Admin

To log in, you need to create a superuser:

python manage.py createsuperuser

After setup the username and password, you can login: http://localhost:8000/admin/

Deployment

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].