A project is an instance of a set of Django apps.

The project is associated with a setting file (settings.py).

$ python manage.py shell

enables the Python interpreter to run with the correct Django settings.

Execute it under your project directory where

settings.py

exists.

Do not use the same path for

MEDIA_URL

and

ADMIN_MEDIA_PREFIX

———

e.g.,

MEDIA_URL = ‘/media/’

ADMIN_MEDIA_PREFIX = ‘/media/’

This will not work.

$python manage.py startapp yourappname

This will create

1. directory named yourappname

2. files:

__init__.py

models.py

views.py

1. Select

File

2. Select

Import

3. select

Existing project into workspace

Then, follow your instinct.

—————–

if you can’t see the window,

try to select

Window

and then

New window

$ django-admin.py startproject yourprojectname

This will create

yourprojectname directory and

there are following files in it:

1. manage.py

2. settings.py

3.urls.py

4. __init__.py

If you got the above error,

check if ‘templatetags’ directory has

__init__.py file or not.

Use

object_list.count

———-

e.g.,

{%if not bookmark_list.count %}
<h2> There is no post in your bookmark.</h2>
{%endif%}

See here

MinGW

is

the minimalist GNU compiler for windows.

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Page 10 of 21« First...«89101112»20...Last »Top Footer