From Fedora Project Wiki

(convert to new category system)
(fixed <pre> tags)
Line 4: Line 4:
# Install required packages: <pre>yum install Django</pre>
# Install required packages: <pre>yum install Django</pre>
|actions=
|actions=
 
<ol>
# Create a new django project
<li>
#: <pre>
Create a new django project
#: django-admin startproject mysite</pre>
<pre>django-admin startproject mysite</pre>
# Change to the project directory and start the django server
</li>
#: <pre>
<li>
#: cd mysite
Change to the project directory and start the django server
#: python manage.py runserver</pre>
<pre>
# Access the default start page for the project
cd mysite
#: <pre>
python manage.py runserver</pre>
#: curl http://localhost:8000</pre>
</li>
<li>
Access the default start page for the project
<pre>
curl http://localhost:8000</pre>
|results=
|results=



Revision as of 17:21, 1 June 2011

Description

This test is designed to validate basic functionality of the Package-x-generic-16.pngDjango 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

  1. Install required packages:
    yum install Django

How to test

  1. Create a new django project
    django-admin startproject mysite
  2. Change to the project directory and start the django server
    cd mysite
    python manage.py runserver
  3. Access the default start page for the project
    curl http://localhost:8000

    Expected Results

    1. The final step above should download a sample web page coming from the Django project that you just created.