Details
-
Type: Task
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Story Points:2
-
Epic Link:
-
Sprint:Spring 2019 Sprint 3, Spring 2019 Sprint 4, Spring 2019 Sprint 5, Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16, Spring 3 2021 Apr 19 - Apr 30, Spring 5 2021 May 17 - May 28
Description
We are using Django for development of App Store and CyVerse integration site.
Before you can contribute, you need to understand some basics of how Django works.
Django is a full-stack web application framework that uses object-oriented python to manage pages, content, and database. Django is popular and there is a lot of documentation.
If you are new to Django, a great way to get started is to do the following sections of the tutorial "Writing your first Django App":
- Part 1 - https://docs.djangoproject.com/en/2.1/intro/tutorial01/
- Part 2 - https://docs.djangoproject.com/en/2.1/intro/tutorial02/
- Part 3 - https://docs.djangoproject.com/en/2.1/intro/tutorial03/
As you do above tutorials, it's useful to think about:
- How do you modify the database? (models.py)
- How do you add data to the database? (migrations)
- How does URL matching and dispatching work?
- How do you create a new page?
- How do you create a completely new django site?
- How do you create a completely new django app for your django site?
And:
- What is settings.py?
- What is manage.py?
- What is urls.py?
- What is django-admin?
Tips & Links:
- You can install and run Django on Linux, MacOS, or Windows. It's super easy on all platforms!
- App Store will be deployed on Ubuntu Linux, but you can develop on whichever platform you prefer.
- Probably you can use whatever database you like for your development environment.
- Django quick install guide - https://docs.djangoproject.com/en/2.1/intro/install/
- It is useful to install and run django in a virtual environment. That way, you can install whatever packages you need without fear of contaminating your system python. On many systems this is a major consideration. For instructions, see the section on virtual environments in the "Contributing" tutorial: https://docs.djangoproject.com/en/2.1/intro/contributing/
Attachments
Issue Links
- blocks
-
IGBF-1740 On-boarding: Get familiar with App Store workflow and set-up
- Closed
-
IGBF-1576 On-boarding - App Store dev - Set up App Store development environment on your computer
- Closed
-
IGBF-1628 Remove CyAppStore hard-coding from appstore project
- Closed
- relates to
-
IGBF-1657 Investigate reimplementing BioViz-CyVerse in Django/Flask/?
- Closed
Tips on virtual environment:
mkdir ~/.virtualenvs
python3 -m venv ~/.virtualenvs/djangodev
source ~/.virtualenvs/djangodev/bin/activate
(djangodev): pip3 install Django
(djangodev): python3
Python 3.7.2 (default, Feb 12 2019, 08:16:38)
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django