Git Product home page Git Product logo

eshop's Introduction

Django 實戰

自己的購物網站自己做

Requirements

  • Python 3.5+
  • Django 1.10+

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

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/

eshop's People

Contributors

flywindy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.