-
Notifications
You must be signed in to change notification settings - Fork 2
TODO
catalog server, not catalog
for each token, it should define the validation time and then check whether it is expired. For staus like finish, the token can only be used once??
For each access_token, it should declaer the validation time.
1.1 check your django version:
>>> import django
>>> django.VERSION
2.2 set up django: official guideline
The initial folder is generated from cmd: django-admin.py startproject catalog
The outer datware/ directory is just a container for your project. Its name doesn't matter to Django; you can rename it to anything you like. I just changed it into from catalog into dataware
manage.py: A command-line utility that lets you interact with this Django project in various ways. You can read all the details about manage.py in django-admin.py and manage.py.
The inner dataware/catalog/ directory is the actual Python package for your project. Its name is the Python package name you'll need to use to import anything inside it (e.g. import dataware.settings).
dataware/catalog/init.py: An empty file that tells Python that this directory should be considered a Python package. (Read more about packages in the official Python docs if you're a Python beginner.)
dataware/catalog/settings.py: Settings/configuration for this Django project. Django settings will tell you all about how settings work.
dataware/catalog/urls.py: The URL declarations for this Django project; a "table of contents" of your Django-powered site. You can read more about URLs in URL dispatcher.
dataware/catalog/wsgi.py: An entry-point for WSGI-compatible webservers to serve your project. See How to deploy with WSGI for more details.