Template issue

2009-05-07 Thread 83nini
Hi guys, I have a template.surf which i'm trying to style with CSS external file, but it's not working! any idea how to deal with .surf templates? and how to style them with the CSS external files? internally working, externally...NOT! cheers. --~--~-~--~~~---~--~

Re: MySQL issues

2009-04-28 Thread 83nini
use sqlite, as it's > > only a file anwyays. So you need to use your mysql tool > > phpmyadmin or whatever you use and create the db and then > > you can run syncdb. If that doesn't fix the problem, you have a > > lot more interesting problem. > > >

Template does not work as it should

2009-04-28 Thread 83nini
Hi, I'm trying to display a form in the following way: 1. creating a form 2. writing a view method that looks like this: def contact(request): if request.method == 'POST': form = ContactForm(request.POST) if form.is_valid(): cd = form.cleaned_data

Re: Django contact_form import error

2009-04-28 Thread 83nini
Hi, I'm also a newbie. I'm working on forms also, and it worked for me. here is what i did: 1. create a new folder in your project, call it "contact" for example, it should include __init__ file (which means that this folder is a package) and views.py file 2. in the views.py write your "contact"

Re: View method + template

2009-04-28 Thread 83nini
; statement ("if not q:") takes care of testing whether you entered an > empty string. > > Hope it helps > jeff > > On Apr 28, 1:32 am, 83nini <83n...@gmail.com> wrote: > > > > > Hi guys, > > I'm working on the tutorial inwww.djangobook.coma

View method + template

2009-04-28 Thread 83nini
Hi guys, I'm working on the tutorial in www.djangobook.com and I reached the point where I'm making a search form, here is what my view methods look like: def search_form(request): return render_to_response('search_form.html') def search(request): error = False if 'q' in request.GET

MySQL issues

2009-04-27 Thread 83nini
Hi guys, I'm working on the tutorial on www.djangobook.com. I've created a database using "manage.py starapp books" then i modified the "models.py" file to include classes where each class represents a column in the database. then i modified the "settings.py" file to include the following: DATAB

Re: New site: www.portaltotheuniverse.org

2009-04-23 Thread 83nini
nice work, you gotta be proud of it :) On 23 Apr, 15:09, larsholm wrote: > Dear all, > > Allow me to advertise for our new Django based > site:http://www.portaltotheuniverse.org > > Keeping up-to-date with cutting-edge astronomy and space science > breakthroughs has just become that much easie

Problem in tutorial

2009-04-23 Thread 83nini
Hi guys, I'm working on django tutorial that is in "www.djangobook.com", I'm in chapter6 where i'm in the process of creating an admin Web site. The site is created and it works just perfectly, the thing is I'm trying to make some date and numeric fields optional, so I modified the models.py fold

Re: Copied project to another computer, doesn't work!

2009-04-22 Thread 83nini
I made it work, problem was that i had forgotten to syncronize the database again stupid ha! but it can slip anybody's mind On 22 Apr, 13:25, 83nini <83n...@gmail.com> wrote: > Hi, > > I'm working on the django tutorial, and i'm at the phase of creating > an

Copied project to another computer, doesn't work!

2009-04-22 Thread 83nini
Hi, I'm working on the django tutorial, and i'm at the phase of creating an admin site, it worked very nicely yesterday, but today the boss gave me a new computer so i had to move everything from the old computer to the new one. everything is working perfectly except for the admin site! when i tr

Re: Admin site error

2009-04-21 Thread 83nini
thanks Alex the great :) it worked On 21 Apr, 15:31, Alex Gaynor wrote: > On Tue, Apr 21, 2009 at 9:29 AM, 83nini <83n...@gmail.com> wrote: > > > I'm trying to work on the tutorial to create an admin site which takes > > 3 steps: > > 1. add "django.

Admin site error

2009-04-21 Thread 83nini
I'm trying to work on the tutorial to create an admin site which takes 3 steps: 1. add "django.contrib.admin," to INSTALLED_APPS in the settings.py file and make sure that : "django.contrib.auth," "django.contrib.contenttypes," "django.contrib.sessions," are also there. make sure that: 'django.mi

Re: Access denied to the server when trying to connect with mysql database

2009-04-21 Thread 83nini
wohooo, thanks, that worked :) i owe you a cheesecake On 21 Apr, 13:03, Anatoliy wrote: > Try run this in MySQL: > > GRANT ALL ON something TO myusern...@localhost IDENTIFIED BY > "somepassword" > > On Apr 21, 2:52 pm, 83nini <83n...@gmail.com> wrote: >

Re: Access denied to the server when trying to connect with mysql database

2009-04-21 Thread 83nini
Yes, i've created a user and granted the user some rights. On 21 Apr, 12:48, Anatoliy wrote: > Do you create user and grant rights to him in MySQL? > > On Apr 21, 1:58 pm, 83nini <83n...@gmail.com> wrote: > > > > > Hi guys, > > > I'm new to

Access denied to the server when trying to connect with mysql database

2009-04-21 Thread 83nini
Hi guys, I'm new to django and trying to learn. I'm trying to connect django to mysql database which i've created, so what i did is that i modified the settings.py file to the following: DATABASE_ENGINE = 'mysql' DATABASE_NAME = 'something' DATABASE_USER = 'myusername' DATABASE_PASSWORD = 'somep

Configuring the database

2009-04-20 Thread 83nini
Hi guys, I'm reading django book chapter 5 (www.djangobook.com), and it is about how to connect with databases and how to use them with django. I've been having really hard time downloading MySQL and using it! I rock when it comes to SQL, and i really would love to use mysql, it's just that the i

Re: ..... in templates

2009-04-17 Thread 83nini
ah! I'm new to this stuff and i wonder why it's not mentioned in the beginners book that i'm reading!!! On 17 Apr, 15:40, Daniel Roseman wrote: > On Apr 17, 2:38 pm, 83nini <83n...@gmail.com> wrote: > > > > > > > I'm lookin

..... in templates

2009-04-17 Thread 83nini
I'm looking at the following code from the www.djangobook.com : Ordering notice Ordering notice Dear {{ person_name }}, Thanks for placing an order from {{ company }}. It's scheduled to ship on {{ ship_date|date:"F j, Y" }}. Here are the items you've ordered: {% for item in item_list %}

Re: How can I create a Python source code file? [was: .py!]

2009-04-17 Thread 83nini
thanks for the useful notes guys, you are really of great help. oh and Phil, i will pay attention to the subject next time i post something :) On 17 Apr, 10:28, Phil Mocek wrote: > On Fri, Apr 17, 2009 at 12:53:29AM -0700, 83nini wrote: > > guys how do i create a .py file? > > &g

Re: .py!

2009-04-17 Thread 83nini
thanks, i guessed that but the question is how to change the extension? On 17 Apr, 10:11, Wayne Koorts wrote: > > guys how do i create a .py file? > > stupid question i know, but i'm new to django. > > I am working on the tutorial and i don't know how to create views.py > > It's just a plain tex

.py!

2009-04-17 Thread 83nini
guys how do i create a .py file? stupid question i know, but i'm new to django. I am working on the tutorial and i don't know how to create views.py thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: help! i'm new in django

2009-04-16 Thread 83nini
thanks a million for the tip, the first command worked :) On 16 Apr, 15:52, Alfonso wrote: > Hi 83nini, > > It doesn't matter too much where you place the actual project folder > for the django code, just ensure all your paths are setup correctly. > For example I just

help! i'm new in django

2009-04-16 Thread 83nini
Hi all, I'm new to django and i'm trying to go through the first tutorial to create a website. I am using the tutorial on the official website, problem is i have no idea where i should put the folder where i am to keep the project that i'm making! thanks guys for help. cheers --~--~-~--