| Name | kanelit |
|---|---|
| Email Address | kanelgreat@yahoo.com |
| Avatar | |
| Posts | 6 |
-
- 2009-01-15 08:56:57
- Re: Sortable Lists in Django
- Board » Django » Ajax / JavaScript
-
Hope can help you!
http://www.djangosnippets.org/snippets/568/
-
- 2009-01-15 08:47:01
- How to put Tinymce work with Django
- Board » Django » Models
-
anyone who have experiences with it .please share the knowledge.
django-tinymce
http://code.google.com/p/django-tinymce/
-
- 2008-12-01 03:11:44
- Basic Crud in Django.
- Board » Django » Models
-
- 2008-11-28 05:35:32
- tips Django
- Board » Getting Started » Setup and Configuration
-
1-install Django by running the following command (for which you will need administrative privileges):
c:\Django-x.xx>python setup.py install
2-To test your installation, open a command prompt and type the
following command:
c:\>django-admin.py --version
3-Installing a Database System
It is worth noting that Django supports several database engines: MySQL, PostgreSQL, MS SQL Server, Oracle, and SQLite.
We can tell Django what database system to use by editing a configuration file, as we will see in later sections. It is also worth noting that if you want to use MySQL, you will need to install MySQLdb, the MySQL driver for Python.
If you don't have Python 2.5, you can install the python module for SQLite manually by downloading it from http://www.pysqlite.org/ (for Windows users) or through your package manager (for UNIX and Linux users).
4-Creating Your First Project
$ django-admin.py startproject django_project_name
or with you PC with this comand
python django-admin.py startproject django_project_name
-----------------------
django_project_name/
__init__.py
manage.py
settings.py
urls.py
--------------------
5-Setting up the Database
Now that you have a source code editor ready, let's open settings.py in the project folder and see what it contains:
---------------------
After those simple edits, the database section in settings.py now looks like this:
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'yoursdb'
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''
------------------------
Creating these tables is easy as it is only a matter of issuing the following command:
$ python manage.py syncdb
After you need to create the Django application
$ python manage.py startapp Yourapplicationname
After running this command, Django will create a folder named Yourapplicationname inside the project folder with these three files:
__init__.py: This file tells Python that bookmarks is a Python package.
views.py: This file will contain our views.
models.py: This file will contain our data models.
Now please develope your application follow MVC(Model,View,Control)
-
- 2008-11-28 05:06:50
- Hello Admin
- Board » Django Standard Library » Comments
-
That nice i found the the django forum by google .when i have a problems with django i can discuss ,share the knowledge,documents....
But this forums so silent.
I think Admin or anyone who have alots experience with Django they should share their knowledge.
such as Admin's The django forum .should post alot toptics such as .tutorials,sample django application,step by step guide,
For me i am a new coming with Django .and i hope that there are alots posting all of you.
thanks.
I love dJaNgO
-
- 2008-09-19 13:00:39
- Re: A quick method for displaying forms in templates.
- Board » Django » Templates
-
For me i am a newbie in Django also.what i want is study from django developers and share each other.
..<html> <head> <title>Django Bookmarks - User Login</title> </head> <body> <h1>User Login</h1> {% if form.has_errors %} <p>Your username and password didn't match. Please try again.</p> {% endif %} <form method="post" action="."> <p><label for="id_username">Username:</label> {{ form.username }}</p> <p><label>for="id_password">Password:</label> {{ form.password }}</p> <input type="hidden" name="next" value="/" /> <input type="submit" value="login" /> </form> </body> </html>
may be something like this:from django import forms #Reference Detials http://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs class RegistrationForm(forms.Form): username = forms.CharField(label='Username', max_length=30) email = forms.EmailField(label='Email') password1 = forms.CharField( label='Password', widget=forms.PasswordInput() ) password2 = forms.CharField( label='Password (Again)', widget=forms.PasswordInput() )


