Re: Multiple Image Field in a model

2011-09-27 Thread NavaTux
Thanks I have done the same way before seeing this valuable one.

Let me ask you one more? ..Need to do some extra functioalities like
the effects of Uploading file in gmail like that in django? any
suggestions?

On Sep 26, 7:14 pm, Philip Mountifield 
wrote:
> I would put the images in a seperate model such as "ReportImage" and
> make a foreign key to "Report", and finally I'd use the "inlines" admin
> feature for ReportImages to display them on the same page as the report.
>
> Phil
>
> On 26/09/2011 15:02, NavaTux wrote:
>
>
>
>
>
>
>
>
>
> > Hi all,
>
> >         I have a filed(ImageField) in my model.Also I want to have
> > multiple ImageFields.How to have more than one ImageFields only in
> > django model.Is there any need to derive that ImageField as a seperate
> > new model which holds as a foreign key of another one?
>
> > This is my model:
>
> > class Report(models.Model):
> >      name = models.CharField(max_length=1024)
> >      data = models.TextField()
> >      image = models.ImageField(upload_to=settings.IMAGE_UPLOAD_PATH,
> > blank=True, null=True)
>
> > I need to display atleast 4 imagefields for this model object?
>
> --
>
> Philip Mountifield
> Formac Electronics Ltd
> tel  +44 (0) 1225 837333
> fax  +44 (0) 1225 430995
>
> pmountifi...@formac.netwww.formac.netwww.telgas.net

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Multiple Image Field in a model

2011-09-26 Thread NavaTux
Hi all,

   I have a filed(ImageField) in my model.Also I want to have
multiple ImageFields.How to have more than one ImageFields only in
django model.Is there any need to derive that ImageField as a seperate
new model which holds as a foreign key of another one?

This is my model:

class Report(models.Model):
name = models.CharField(max_length=1024)
data = models.TextField()
image = models.ImageField(upload_to=settings.IMAGE_UPLOAD_PATH,
blank=True, null=True)

I need to display atleast 4 imagefields for this model object?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django 1.3 URL resolvers is not working

2011-03-23 Thread NavaTux
Here just i am authenticating a user in django and logout him

authentication view is working fine and i wriiten a log out view which
is here

def view_logout(request):
from django.contrib.auth import logout as django_logout
django_logout(request)
return HttpResponseRedirect(urlresolvers.reverse('login'))

this is my template content which is given the link to logout

   " Logout "

when rendering this application , it asks username and password ,
after given both, home page is being displayed then clicking Logout
url
it displays the below error

Traceback::

""Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/logout/

Django Version: 1.3
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'options_alpha']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.csrf.CsrfResponseMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/home/hirelex/workspace/optionsalpha/lib/python2.6/site-packages/
django/core/handlers/base.py" in get_response
  111. response = callback(request,
*callback_args, **callback_kwargs)

Exception Type: TypeError at /logout/
Exception Value: 'str' object is not callable""

I am using latest django 1.3 and i did editing the middleware classes
to avoid the error "CSRF token verification failed" by following this
link .then it works fine ;-)

The logout function makes the problem

hope you will point this error

if you need any information i ll give

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: what is mean by an integer is required?

2011-03-22 Thread NavaTux
I think the problem is in "Datetime field" format
test_start_date
please could you make it sure?plz


On Mar 22, 9:23 pm, NavaTux  wrote:
> Here just i had written django script to calculate in my data
>
> MarketUpdate in my django model
> Here i am passing two custom fields 'ticker' and 'test_start_date'(datetime
> format)
> this script is finely working while executing in django shell
> It displays error after calling as a method "stock_up()"
>
> from optionsAlpha.models import MarketUpdate
>
> from datetime import datetime
>
> from django.db.models import Q
>
> def stock_up(ticker, test_start_date):
>
> #stock_value=0
>
> mu1 = MarketUpdate.objects.filter(Q(stock_symbol=ticker) &
> Q(update_timestamp__gt=datetime(test_start_date))).order_by('stock_value')
>
> #print mu1[0].stock_value
>
> max_stock=mu1[0].stock_value
>
> count=0
>
> for i in mu1:
>
>      if i.stock_value >= max_stock:
>
>          max_stock = i.stock_value
>
>          count+=1
>
>         return count
>
> Output when calling this method from django shell:
>
> >>> dat
>
> datetime.datetime(2011, 3, 19, 8, 58, 28, 999615)
>
> >>> ticker
>
> 'GOOG'
>
> >>> stock_up(ticker,dat)
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "/home/hirelex/optionsalpha/optionsAlpha/trade_count.py", line 6, in
> stock_up
>
>     mu1 = MarketUpdate.objects.filter(Q(stock_symbol=ticker) &
> Q(update_timestamp__gt=datetime(test_start_date))).order_by('stock_value')
>
> TypeError: an integer is required
>
>
>
> Here Stock_value is another field (float) in my model. just i need to order
> it
> what is the meaning of this error? How to resolve it? could you suggest it

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



what is mean by an integer is required?

2011-03-22 Thread NavaTux
Here just i had written django script to calculate in my data

MarketUpdate in my django model
Here i am passing two custom fields 'ticker' and 'test_start_date'(datetime 
format)
this script is finely working while executing in django shell
It displays error after calling as a method "stock_up()"

from optionsAlpha.models import MarketUpdate

from datetime import datetime

from django.db.models import Q

def stock_up(ticker, test_start_date):

#stock_value=0

mu1 = MarketUpdate.objects.filter(Q(stock_symbol=ticker) & 
Q(update_timestamp__gt=datetime(test_start_date))).order_by('stock_value')

#print mu1[0].stock_value

max_stock=mu1[0].stock_value

count=0

for i in mu1:

 if i.stock_value >= max_stock:

 max_stock = i.stock_value

 count+=1

return count


Output when calling this method from django shell:

>>> dat

datetime.datetime(2011, 3, 19, 8, 58, 28, 999615)

>>> ticker

'GOOG'

>>> stock_up(ticker,dat)

Traceback (most recent call last):

  File "", line 1, in 

  File "/home/hirelex/optionsalpha/optionsAlpha/trade_count.py", line 6, in 
stock_up

mu1 = MarketUpdate.objects.filter(Q(stock_symbol=ticker) & 
Q(update_timestamp__gt=datetime(test_start_date))).order_by('stock_value')

TypeError: an integer is required

>>> 

Here Stock_value is another field (float) in my model. just i need to order 
it
what is the meaning of this error? How to resolve it? could you suggest it 

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Not Printing stmt in for loop

2011-03-17 Thread NavaTux


Here I ahd a piece of code to execute my custom python function
just i executed via python shell ,so i used print statement to know some 
values but it does't respond anything 

May i know the reason please?

this is the code which i executed successfully

">>> for i in cr:
... tic, mktprice,exp_date, e, ep, c, cp = i
... expd = datetime.strptime(exp_date, "%Y-%m-%d %H:%M:%S")
... cd = datetime.combine(datetime.now().date(), 
datetime.time(datetime(12,12,12,0,0,0,0))) - timedelta(days=8)
... datediff = expd - cd
... current_date = cd.strftime("%Y-%m-%d")
... days_to_expiry = datediff.days
... mktprice, e, ep, c, cp = float(mktprice), float(e), float(ep), float(c), 
float(cp), float(s), float(sp)
... print days_to_expiry
... print mktprice
... 
>>> 

cr is the data that red from csv file.So i is the row from a csv file

why it doesn't print anything?

it is just a simple python part 
"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Problem with Filtering the modelField by passing req object in forms

2011-02-21 Thread NavaTux
Hi all,

  just i want to pass the request object to my form for
doing some dynamic operation even i am using formset

This is my form:

class PostJobForm(forms.ModelForm):
""" Post Job Form """
def __init__(self, *args, **kwargs):
request = kwargs.pop('request')
super(PostJobForm, self).__init__(*args, **kwargs)
site_tags = identify_site_tags(request)
tags = map(lambda x:Tag.objects.get(name=x),
site_tags) ##my dynamic operation for 'tags' fields
self.fields["tags"].queryset = tags
class Meta:
model = Job
fields=('code', \
'name', \
'description', \
'company', \
'url',\
'tags', \
'state',\
'city', \
'postedby'\

)

description = forms.CharField(widget=widgets.\
  TinyMCE(attrs={'cols':80, 'rows':
20}))

from django.utils.functional import curry
PostMutipleJobFormSet = formset_factory(PostJobForm,max_num=10,
extra=5)
PostMutipleJobFormSet.form.append(staticmethod(curry(PostJobForm,request=request)))
##/here is my doubt  IS IT correct?


I am passing in my view like this:::

post_mJob_formset =
PostMutipleJobFormSet(request=request,request.POST) ##Passing
request object



Here what i want is i have to successfully filter the 'tags' model to
display in this form,for that it needs request object.
identify_site_tags...,etc some are the module which i am using for my
own purpose

could you please suggest the problem here?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Need a tutorial for 'regexpr'

2011-02-10 Thread NavaTux
Hi friends,

   Do you know any elegant tutorial to learn a regular 
expression from a nutshell ? i have referred some links which are given in 
a syntax without simple example, just i need a simple examples with clear 
explanation even i tried in past two days to pick it

  Could you suggest some books or links whatever you followed?



regards,

Navaneethan
http://navaspot.wordpress.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Pass 'request' object to Form

2011-02-09 Thread NavaTux
Hi all,

   i have been using modelform in my site,Now i want to do filter 
the 
objects(only today generated) in the particular model(TAG) ,for that 
constraint 
TAGS has to be generated today only, because while retrieving all objects in 
a 
particular many_to_many(TAG) field it is quite slow to process

As well as in my application flow i need a request object to do 
this, 
from that request i have to filter the site(HTTP_HOST),(ofcourse using two 
sites) 
then for that site only the particular tags has be loaded 

  Here my doubt is 

 I need to pass the 'request' object to my form(model 
form) 
Is it possible? because, the 'request' object is passing to view from the 
form  
by 
template CORRECT?

 or Is it possibe to pass a object from 'view' to 'form' 
reversely??

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread NavaTux
Thanks Tom 

mjob=Job.objects.create(name=name,*city=city,tags=tag*)

Here i shouldn't use to create a object for foreign key and many_to_many 
field; we have to get it from it's id right? because the key property 
violates then,

city=City.objects.get(id=city_id)  
tag=Tag.objects.get(id=tag_id)
mjob=Job.objects.create(name=name,*city=city,tags=tag*)

it seems also problem!!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread NavaTux
Hi Django Users,

  I had done the custom form with some fields which 
includes(charfield,foreignkey(ModelChoiceField),many_to_many 
field(MultiplemodelChoiceField) ),I had created a formset for my form then i 
need to process and pass the formset datas into my template

*this is my form:*

*class JobPostingForm(forms.Form):*
name = forms.CharField(max_length=250)
   city = forms.ModelChoiceField(queryset=City.objects.all())
  tag = forms.ModelMultipleChoiceField(queryset=Tag.objects.all())

(Formset)
MJobFormSet=formset_factory(JobPostingForm, max_num=5, extra=2)

*view function* 

*def view_post_multiple_jobs(request,post_mjobs_template):*
   if request.method == 'POST':
 mjob_form_set = MJobFormSet(request.POST)
 if mjob_form_set .is_valid():
form_set_data = 
mjob_form_set.cleaned_data
 
 def _save_job(job):
 name=job['name']
  *city=__*
  *tag=__*
  mjob=Job.objects.create(name=name,*
city=city,tags=tag*)
return mjob
map(_save_job, [job for job in form_set_data if job]

  return (template)

Here I don't know that how to process the city,tag objects in _save_job() 
because city is foreign key object and tag is many_tomany object retirned 
from formset

could you please point it even i have tried in times

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Formset problem

2011-02-01 Thread NavaTux
Hi,

I wanna to display a THREE recursive ModelForms in a
single page in my django admin
so i chose my code like that

this is my ModelAdmin module

admin.py

class JobAdminForm(forms.ModelForm):
class Meta:
model = Job#Job is my model

description = forms.CharField(widget=widgets.TinyMCE(attrs={'cols':
80, 'rows':20}))

from django.forms.formsets import formset_factory
JobAdminFormSet = formset_factory(JobAdminForm,extra=3)


class JobAdmin(admin.ModelAdmin):
formset = JobAdminFormSet()
def save_formset(self, request, form, formset, change):
instances = formset.save(commit=False)
for instance in instances:
instance.user = request.user
instance.save()
formset.save_m2m()

admin.site.register(Job,JobAdmin)

It is not displaying
What is the problem with that? How to display it?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Meaning for this error

2011-01-12 Thread NavaTux
Hi all,

   I wan to import a method in a model class to another
class as well as that method contains some objects includes self

How to import that method's operation?

it shows the error


>>> from users.models import userprofile
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/
models.py", line 6, in 
from django.db import models
  File "/usr/local/lib/python2.6/dist-packages/django/db/__init__.py",
line 14, in 
if not settings.DATABASES:
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
functional.py", line 276, in __getattr__
self._setup()
  File "/usr/local/lib/python2.6/dist-packages/django/conf/
__init__.py", line 38, in _setup
raise ImportError("Settings cannot be imported, because
environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: No module named _md5

2010-12-14 Thread NavaTux
Same problem occurs;


" (blogg)hire...@hirelex-laptop:~/Desktop/blogg/src$ *find -iname '*.pyc' 
-exec rm -f '{}' \;*
(blogg)hire...@hirelex-laptop:~/Desktop/blogg/src$ cd ..
(blogg)hire...@hirelex-laptop:~/Desktop/blogg$ ls
bin  blogsrc  include  lib  src
(blogg)hire...@hirelex-laptop:~/Desktop/blogg$ cd blogsrc/
(blogg)hire...@hirelex-laptop:~/Desktop/blogg/blogsrc$ ls
blog __init__.pyc  settings.py   settings.pyc  urls.py   urls.pyc
__init__.py  manage.py settings.py~  templates urls.py~
(blogg)hire...@hirelex-laptop:~/Desktop/blogg/blogsrc$ *python manage.py 
runserver*
Traceback (most recent call last):
  File "manage.py", line 11, in 
execute_manager(settings)
  File 
"/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", 
line 438, in execute_manager
utility.execute()
  File 
"/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", 
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", 
line 191, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", 
line 209, in execute
translation.activate('en-us')
  File 
"/usr/local/lib/python2.6/dist-packages/django/utils/translation/__init__.py", 
line 66, in activate
return real_activate(language)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", 
line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
  File 
"/usr/local/lib/python2.6/dist-packages/django/utils/translation/__init__.py", 
line 36, in delayed_loader
return getattr(trans, real_name)(*args, **kwargs)
  File 
"/usr/local/lib/python2.6/dist-packages/django/utils/translation/trans_real.py",
 
line 193, in activate
_active[currentThread()] = translation(language)
  File 
"/usr/local/lib/python2.6/dist-packages/django/utils/translation/trans_real.py",
 
line 176, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File 
"/usr/local/lib/python2.6/dist-packages/django/utils/translation/trans_real.py",
 
line 159, in _fetch
app = import_module(appname)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", 
line 35, in import_module
__import__(name)
  File 
"/usr/local/lib/python2.6/dist-packages/django/contrib/admin/__init__.py", 
line 1, in 
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
  File 
"/usr/local/lib/python2.6/dist-packages/django/contrib/admin/helpers.py", 
line 1, in 
from django import forms
  File "/usr/local/lib/python2.6/dist-packages/django/forms/__init__.py", 
line 17, in 
from models import *
  File "/usr/local/lib/python2.6/dist-packages/django/forms/models.py", line 
6, in 
from django.db import connections
  File "/usr/local/lib/python2.6/dist-packages/django/db/__init__.py", line 
77, in 
connection = connections[DEFAULT_DB_ALIAS]
  File "/usr/local/lib/python2.6/dist-packages/django/db/utils.py", line 91, 
in __getitem__
backend = load_backend(db['ENGINE'])
  File "/usr/local/lib/python2.6/dist-packages/django/db/utils.py", line 49, 
in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 
'django.db.backends.postgresql_psycopg2' isn't an available database 
backend. 
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 
'sqlite3'
Error was: *No module named _md5*
(blogg)hire...@hirelex-laptop:~/Desktop/blogg/blogsrc$ 
"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



No module named _md5

2010-12-14 Thread NavaTux
I am running my django blog application inside virtualenv;it got
executed before sometimes;now it mess up

it shows the error

(blogg)hire...@hirelex-laptop:~/Desktop/blogg/blogsrc$ python
manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 11, in 
execute_manager(settings)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/
__init__.py", line 438, in execute_manager
utility.execute()
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/
__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/
base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/
base.py", line 209, in execute
translation.activate('en-us')
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
translation/__init__.py", line 66, in activate
return real_activate(language)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
functional.py", line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs,
**morekwargs))
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
translation/__init__.py", line 36, in delayed_loader
return getattr(trans, real_name)(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
translation/trans_real.py", line 193, in activate
_active[currentThread()] = translation(language)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
translation/trans_real.py", line 176, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
translation/trans_real.py", line 159, in _fetch
app = import_module(appname)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/
importlib.py", line 35, in import_module
__import__(name)
  File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/
__init__.py", line 1, in 
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
  File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/
helpers.py", line 1, in 
from django import forms
  File "/usr/local/lib/python2.6/dist-packages/django/forms/
__init__.py", line 17, in 
from models import *
  File "/usr/local/lib/python2.6/dist-packages/django/forms/
models.py", line 6, in 
from django.db import connections
  File "/usr/local/lib/python2.6/dist-packages/django/db/__init__.py",
line 77, in 
connection = connections[DEFAULT_DB_ALIAS]
  File "/usr/local/lib/python2.6/dist-packages/django/db/utils.py",
line 91, in __getitem__
backend = load_backend(db['ENGINE'])
  File "/usr/local/lib/python2.6/dist-packages/django/db/utils.py",
line 49, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured:
'django.db.backends.postgresql_psycopg2' isn't an available database
backend.
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2',
'sqlite3'
Error was: No module named _md5

may i know the problem over here?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Started now my django

2010-12-12 Thread NavaTux
I am new to this world ..i hope to live plenty here;I would like to
get the materials which lead me on flow from the newbies
beginning ..can you please give me your guidance(or steps) that i
should follow sequentially to remove all obstacles(learn django
pretty) plz!!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.