Re: python_2_unicode_compatible error
I resolved it using the answer available @ http://stackoverflow.com/questions/20741754/python-2-unicode-compatible-error Happy hacking, mario23 -- 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/a1973551-5537-42b7-86ea-397008d4d7e7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
python_2_unicode_compatible error
I've "models.py" as follows, #encoding: utf-8 from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.timezone import now # Create your models here. @python_2_unicode_compatible class Tag(models.Model): name = models.CharField(max_length=50, unique=True) class Meta: verbose_name = 'tag' verbose_name_plural = 'tags' ordering = ['name'] def __str__(self): return self.name . and so on *when I ran* "python manage.py syncdb" this is the error I got. itman@itman:~/djangoApp/mysite$ python manage.py syncdb Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line utility.execute() File "/usr/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/lib/python2.7/dist-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 231, in execute self.validate() File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 266, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.7/dist-packages/django/core/management/validation.py", line 30, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 158, in get_app_errors self._populate() File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 67, in _populate self.load_app(app_name) File "/usr/lib/python2.7/dist-packages/django/db/models/loading.py", line 88, in load_app models = import_module('.models', app_name) File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/home/clrg/djangoApp/mysite/bmark/models.py", line 4, in from django.utils.encoding import python_2_unicode_compatible ImportError: cannot import name python_2_unicode_compatible don't know why the module is not imported. I'm using python 2.7 and django 1.4. Any help would be of immense help -- 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/f3be54b7-81bc-4729-986f-656213ba9b1b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: HTML format-able inputbox
Mrinmoy Das, your site is cool man! do you have the site code hosted anywhere. Mario On Friday, December 20, 2013 10:30:02 AM UTC+5:30, Mrinmoy Das wrote: > > Thanks man :) > > Mrinmoy Das > http://goromlagche.in/ > > > On Fri, Dec 20, 2013 at 4:01 AM, Russell Keith-Magee < > rus...@keith-magee.com > wrote: > >> Hi Mrinmoy, >> >> There isn't anything baked into Django itself, but there are plenty of >> third-party packages that have this feature. You can get a fairly big list >> of them here: >> >> https://www.djangopackages.com/grids/g/wysiwyg/ >> >> Yours, >> Russ Magee %-) >> >> >> >> On Thu, Dec 19, 2013 at 2:43 PM, Mrinmoy Das >>> > wrote: >> >>> Is there a django forms widget or something which html format-able input >>> box, like gmail? Something in where we can add a list or an image inside a >>> textbox. >>> >>> >>> Mrinmoy Das >>> http://goromlagche.in/ >>> >>> -- >>> 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...@googlegroups.com . >>> To post to this group, send email to django...@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/CAFWA-MNLS2RuWo%3DeA1e80E6RO4zd_v1ZaEnrZ4Ki1Boitz0OCA%40mail.gmail.com >>> . >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- >> 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...@googlegroups.com . >> To post to this group, send email to django...@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/CAJxq8480qos5AAHEjSED5DY1uvOwKdnwg0mQSCx%3DLebXZFSE_g%40mail.gmail.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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/2f60ea91-8f6b-4cf1-b2bc-5a8dfc1fa5e0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Django app for text selection and time measurement
Vicherot, okay. I know how to create a basic django app like blog etc. If you guide me to some tutorials/blogs/apps that specifically or closely deals with what I need, It can be much helpful to me. Thanks:) Mario > -- 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/e8f699f8-4825-4394-be4f-0f7a579de8fe%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Django app for text selection and time measurement
Hi, I want to develop a django app where the users have to select some text in a given sentence; And I need to store the selected text and the time taken for selecting that text. I'm a newbie to django. Can you help me with how should i do this? Is there any relevant apps that I can make use of with little/minor changes. Thanks in advance:) Mario -- 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/98875243-7ac9-43a9-90ed-5b7c31246b1b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.