From Fedora Project Wiki
No edit summary |
(Add some descriptive text) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= | |description=This test is designed to validate basic functionality of the {{package|Django}} package. The test includes creating and hosting a new project. This test case was taken from http://docs.djangoproject.com/en/dev/intro/tutorial01. | ||
|setup=yum install Django | |setup= | ||
# Install required packages: <pre>yum install Django</pre> | |||
|actions= | |actions= | ||
# django-admin startproject mysite | # Create a new django project | ||
# cd mysite | #: <pre> | ||
# python manage.py runserver | #: django-admin startproject mysite</pre> | ||
# curl http://localhost:8000/ | # Change to the project directory and start the django server | ||
#: <pre> | |||
#: cd mysite | |||
#: python manage.py runserver</pre> | |||
# Access the default start page for the project | |||
#: <pre> | |||
#: curl http://localhost:8000</pre> | |||
|results= | |results= | ||
# The final step above should download a sample web page coming from the Django project that you just created. | |||
}} | }} | ||
[[Category:Django_Test_Cases]] | [[Category:Django_Test_Cases]] |
Revision as of 23:57, 10 September 2010
Description
This test is designed to validate basic functionality of the Django
package. The test includes creating and hosting a new project. This test case was taken from http://docs.djangoproject.com/en/dev/intro/tutorial01.
Setup
- Install required packages:
yum install Django
How to test
- Create a new django project
- django-admin startproject mysite
- Change to the project directory and start the django server
- cd mysite
- python manage.py runserver
- Access the default start page for the project
- curl http://localhost:8000
Expected Results
- The final step above should download a sample web page coming from the Django project that you just created.