AttributeError:'TaggableManager' object has no attribute 'primary_key'

2014-01-26 Thread vinoth kumar renganathan
Hello everyone. i just added "tags = TaggableManager" in my models.py file. 
So when i initiated to run python manage.py schemamigration myapp --initialit 
shows below error. I search a lot to solve this but can't. can anyone 
please help me out of this problem.

File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 399, in execute_from_command_line
utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 285, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/management/commands/schemamigration.py",
 
line 151, in handle
for action_name, params in change_source.get_changes():
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/changes.py",
 
line 460, in get_changes
model_defs = freeze_apps([self.migrations.app_label()])
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py",
 
line 32, in freeze_apps
frozen_models.update(model_dependencies(model))
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py",
 
line 96, in model_dependencies
depends.update(field_dependencies(field, checked_models))
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py",
 
line 132, in field_dependencies
value = get_attribute(field, attrname)
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/utils/__init__.py",
 
line 38, in get_attribute
value = getattr(value, part)
AttributeError: 'TaggableManager' object has no attribute 'primary_key'

And in south migration tutorials when adding taggit we should add below 
lines.


from south.modelsinspector import 
add_ignored_fieldsadd_ignored_fields(["^taggit\.managers"])

i added those lines. But the same error coming again. 



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b232c97c-073d-4ed5-b9a1-11636d79ba3b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


AttributeError: 'TaggableManager' object has no attribute 'primary_key'

2014-01-21 Thread vinoth kumar renganathan
When i making new migration with this command "python manage.py 
schemamigration blogger --auto" it shows " You cannot use --auto on an app 
with no migrations. Try --initial."

so i try to run "python manage.py schemamigration blogger --initial" . And 
i got this in my terminal
Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 399, in execute_from_command_line
utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 285, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/management/commands/schemamigration.py",
 
line 151, in handle
for action_name, params in change_source.get_changes():
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/changes.py",
 
line 460, in get_changes
model_defs = freeze_apps([self.migrations.app_label()])
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py",
 
line 32, in freeze_apps
frozen_models.update(model_dependencies(model))
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py",
 
line 96, in model_dependencies
depends.update(field_dependencies(field, checked_models))
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/creator/freezer.py",
 
line 132, in field_dependencies
value = get_attribute(field, attrname)
  File 
"/usr/local/lib/python2.7/dist-packages/South-0.8.1-py2.7.egg/south/utils/__init__.py",
 
line 38, in get_attribute
value = getattr(value, part)
AttributeError: 'TaggableManager' object has no attribute 'primary_key'

Herewith attached detail about my project.

urls.py   http://pastebin.com/Cibt5a9L
models.py  http://pastebin.com/prYeigN9 
views.pyhttp://pastebin.com/AJu2PXkJ
tagpage.html  http://pastebin.com/MBaj23cx

Also installed 'taggit'  in settings.py


 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/83be8db0-9bb9-41cf-9eb7-087f87c3bafe%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re:

2012-12-22 Thread vinoth kumar renganathan
thank you bro it is working

 i tested so many times. but in the previous cases   i didn't
added machine name  to the TEMPLATE_DIR in the settings.py

-- 
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:

2012-12-22 Thread vinoth kumar renganathan
in  my TEMPLATE_DIRS = '/home/projectname/polls/template'
i written like this is it correct or not

-- 
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.



[no subject]

2012-12-21 Thread vinoth kumar renganathan
i am new user to  django .and i don't know how to add .html   files
(template dirs ) to  the apps folders  .what are the things want to change
in settings.py


the error will be templatedoesnotexist
   /polls
  /admin.py
  /__init__.py
 /models.py
 /tests.py
  /urls.py
  /views.py
  /template
   /polls
/index.html
and this order will be correct or not

for example this will be codings

 {% if latest_poll_list %}

{% for poll in latest_poll_list %}
{{ poll.question }}
{% endfor %}

{% else %}
No polls are available.
{% endif %}

is it necessary to add htmltag ,header tag and doctype before this html
codings

-- 
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: 【HELP】AttributeError: 'AdminSite' object has no attribute 'urls'

2012-12-18 Thread vinoth kumar renganathan
1 . check whether u imported url in the file mysite/urls.py

2.make sure that you added url before the command(r'^admin/',
include(admin.site.urls))

-- 
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.



[no subject]

2012-12-09 Thread vinoth kumar renganathan
when i start to run python manage.py runserverto start the DEVELOPMENT
SERVER

i got this trouble in my terminal

like

   raise TemplateDoesNotExist(name)
TemplateDoesNotExist: 500.html


so i am new one to django someone help me to let out of this 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.



[no subject]

2012-11-13 Thread vinoth kumar renganathan
i am new one to the django
when i am running

 ./manage.py syncdb

i got this in my terminal

 Traceback (most recent call last):
  File "./manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 443, in execute_from_command_line
utility.execute()
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 196, in run_from_argv
self.execute(*args, **options.__dict__)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 232, in execute
output = self.handle(*args, **options)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 371, in handle
return self.handle_noargs(**options)
  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py",
line 57, in handle_noargs
cursor = connection.cursor()
  File
"/usr/local/lib/python2.7/dist-packages/django/db/backends/dummy/base.py",
line 15, in complain
raise ImproperlyConfigured("settings.DATABASES is improperly
configured. "
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
improperly configured. Please supply the ENGINE value. Check settings
documentation for more details.

so some one please  provide the solution to this 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.



Re:

2012-06-08 Thread vinoth kumar renganathan
yaa its working thank you  a lot

-- 
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.