the terminal returns me:
>>> import sqlite
Update your version of sqlite to 3.
Run sqlite independently from the python command line to create a
databases.
sqlite3 example.db
Simples
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
sorry, everyone, I just figured I made a really stupid question,
I should type import sqlite3 instead of import sqlite
Thanks everyone
On Thu, Jan 13, 2011 at 9:46 AM, Karsten Schulz wrote:
> Hi Chen,
>
> Am 13.01.2011 um 18:25 schrieb Daniel Roseman:
> > creating
> /System/Library/Frameworks/P
but when I do the following to check the version of my sqlite:
>>> import sqlite
>>> sqlite.version
'1.0.1'
the terminal returns me:
>>> import sqlite
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named sqlite
I dont know what is going on, could you please help
Were you able to solve the problem? I regularly get hangs (around a
minute) as well, using python 2.6.5 from MacPorts and Django 1.2,
usually when using Chrome's incognito mode. Also, I sometimes have to
reload the page multiple times until all the media files load since
there seem to be errors in
Thank you! I've been wishing something like this was a part of Django
since trying to write my first tag. I've been using something in
house that provides similar functionality for a couple of years and
couldn't live without it. Your implementation is much more complete
(validation) and I'm look
Why 'inclusion_tag' from 'django.template' does not accept the
argument 'name', as the method of 'tag' does?
For example, I need two inclusion_tag's with the same functionality
but with different templates. It would be nice to do something like
this:
register.inclusion_tag('first.html', name='tag
I've searched Django Snippets and I've started to debug how the Admin
interface does it, but is there an existing widget that displays a list of
choices in a left box and allows you to move them to a right box with a
click like the selection of User Permissions in the Admin or the jQuery
plugin
Hi,
I have a problem writing a Django web app that will work on a
BlackBerry 8520, which comes with the 4.6.2 blackberry OS. This
problem is not reproducible on blackberry OS 5.0 and later where it
works fine.
The problem as I see it is with cookies. For some reason, Django
framework does not det
Don't see the need to use an ajax solution when a simple raw field makes the
work properly. Don't get me wrong, it's good to have several options, just that
I don't see the need.
Regards,
Matías
Excerpts from felix's message of Thu Jan 13 22:14:43 -0200 2011:
> django ajax select will work (jQuer
On Thu, Jan 13, 2011 at 4:04 PM, Jim D. wrote:
> It made sense to me, but when I why tried to actually use it...I found
> raw was not being passed at all to any of my handlers. Closer
> examination of loaddata.py does not show it using save_base() or
> passing raw anywhere.
>
> So that leaves me
I'm looking for feedback on django-ttag.
Here are the docs: http://packages.python.org/django-ttag/index.html.
They aren't completely finished, but should be readable and understandable.
Read through the docs, or better still, take it for a spin then let me know
what you think.
For the industrio
Alternatively, you can just split your models module into a package
containing multiple models. You'll just need to manually set the app_name on
the Meta class of each app, since isn't automagically set for classes
defined outside of the models module.
--
You received this message because you
django ajax select will work (jQuery):
http://code.google.com/p/django-ajax-selects/
--
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 ema
I have models that look something like this:
class ProductGroup(models.Model):
name = models.CharField(max_length=10, primary_key=True)
def __unicode__(self): return self.name
class ProductRun(models.Model):
date = models.DateField(primary_key=True)
def __unicode__(self): return
On 01/13/2011 05:06 PM, Brian Craft wrote:
Are there docs somewhere for the Group methods? E.g., I discovered
through extensive googling that I can call user.groups.all(), but I
can't find docs of an "all()" method, or any other method for Groups.
If there aren't docs, how does one discover the m
Are there docs somewhere for the Group methods? E.g., I discovered
through extensive googling that I can call user.groups.all(), but I
can't find docs of an "all()" method, or any other method for Groups.
If there aren't docs, how does one discover the methods?
--
You received this message becaus
I was just now researching some options for how to manage the way
certain post_save/pre_save signals can interfere with fixture loading
during tests, when I happened upon this ticket:
http://code.djangoproject.com/ticket/12610
Which says:
"There is already a hook to check for this - data saved d
I started a new project on google code, django-requests[1], and i'm
looking for opinions, suggestions, help..
The project goal is make a simple and generic way to moderate requests
made by users to add, edit or remove objects.
Thanks
[1] - http://code.google.com/p/django-requests/
--
You recei
On Thu, Jan 13, 2011 at 6:40 PM, ranadave wrote:
> I'm using Django version 1.1.2.
>
> I'm trying to find all objects that reference object A.
> Object B has a ManyToManyField to A.
> Object C has the same, but it uses a defined through table.
>
> When I do:
>> related_objs = CollectedObjects()
>>
On Thu, Jan 13, 2011 at 9:10 PM, ringemup wrote:
> If a manager is defined on an abstract model, do non-abstract child
> models inherit the manager?
http://docs.djangoproject.com/en/dev/topics/db/managers/#custom-managers-and-model-inheritance
--
Marc
--
You received this message because you a
If a manager is defined on an abstract model, do non-abstract child
models inherit the manager?
--
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, s
I have a screen which displays just fine the first time in, however
when I knowingly submit the page without entering data in all of the
fields to cause an error the page loses some of the data and controls.
I'm sure my view code is probably missing something just not sure at
this point what exactl
Better use this url: http://riesenhirni.de/media/static/uploads/django.pdf
On 13 Jan., 19:47, "ckar...@googlemail.com"
wrote:
> Brand new @http://karrié.de/media/static/uploads/django.pdf
>
> On 27 Dez. 2010, 22:58, "ckar...@googlemail.com"
>
>
>
>
>
>
>
> wrote:
> > Current Doc:http://ubuntuone
Brand new @ http://karrié.de/media/static/uploads/django.pdf
On 27 Dez. 2010, 22:58, "ckar...@googlemail.com"
wrote:
> Current Doc:http://ubuntuone.com/p/Vb6/(Is's 1.3.0 Beta 1 now [1])
>
> Changelog according to [2]
>
> [1]http://code.djangoproject.com/changeset/15066/django/trunk?old=14893#...
Hi Chen,
Am 13.01.2011 um 18:25 schrieb Daniel Roseman:
> creating
> /System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc
> error: could not create
> '/System/Library/Frameworks/Python.framework/Versions/2.6/pysqlite2-doc':
> Permission denied
sound like it's an OS X Unix?
T
I'm using Django version 1.1.2.
I'm trying to find all objects that reference object A.
Object B has a ManyToManyField to A.
Object C has the same, but it uses a defined through table.
When I do:
> related_objs = CollectedObjects()
> A._collect_sub_objects(related_objs)
> classes = related_objs.k
On Thursday, January 13, 2011 4:30:44 PM UTC, Chen Xu wrote:
>
> Hi: Django users:
> This is my first time to install Django on my unix system, and trying to
> get my Sqlite running.
> After I downloaded pysqlite-2.6.0, and run this command:
>
> python setup.py build_static install
>
> It gives
Hi,
I'm trying to put up a modelform for users to edit their 'projects'.
But I can't figure out how I can retrieve the request object in the class
based generic view. I need it to verify the user.
Also, when the form is submitted, I want to re-verify the user once again to
make sure his authentic
Hi: Django users:
This is my first time to install Django on my unix system, and trying to get
my Sqlite running.
After I downloaded pysqlite-2.6.0, and run this command:
python setup.py build_static install
It gives me:
running build_static
running build_py
running build_ext
running install
ru
On Wed, Jan 12, 2011 at 10:59 PM, Derek wrote:
> You could also consider using an AJAX-based "autocomplete" approach;
> see:
> http://code.djangoproject.com/wiki/AutoCompleteSolutions
>
> On Jan 12, 7:27 am, gupta-django wrote:
> > I have two application
> >
> > 1. App1 - It has a Model Class "E
Hi,
You may want to have a look at:
http://docs.djangoproject.com/en/1.2/ref/contrib/comments/moderation/#django.contrib.comments.moderation.CommentModerator.email_notification
Or define a template name comments/comment_user_notification.txt as stated by
the exception :)
Regards,
Xavier.
Le 13
Hi everybody, I have a problem with comments I have done everything as said
in http://docs.djangoproject.com/en/1.2/ref/contrib/comments/ but I have a
problem that I don't know how to solve when I post a comment I get this
error:
Exception Type: TemplateDoesNotExist Exception Value:
comments/com
Hi,
im my model I have a field title as unique.
Adding new records works fine. But when I want to edit it, I get problem.
Here's the code:
view:
article = Article.objects.select_related().get(pk=id)
if request.method == 'POST':
form = ArticleForm(request.POST, instance=article)
That worked! Thanks for your help
Jeff
On Thu, Jan 13, 2011 at 8:31 AM, Shawn Milochik wrote:
> Try using safestring.mark_safe() on the string before dumping it into the
> template.
>
> Shawn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" gr
Try using safestring.mark_safe() on the string before dumping it into
the template.
Shawn
--
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
I create a def that gives to me the potential cities I could have and
setup this in the __init__ of my form.
def get_cities(Istance):
city_list = City.objects.filter(id = 0)
province_list_id =
Istance.objects.all().values('province').distinct().order_by('province')
for province_id in p
Thanks Gennaddiy but xampp is not what I want.
On 1/12/11, Gennadiy Zlobin wrote:
> You can use xampp both on Linux and Windows, just zip it and unzip
> On 13 Jan 2011 01:33, "Julio Cesar Rodriguez Cruz" <
> juliocesarrodriguezc...@gmail.com> wrote:
>> Hi all, anyone can suggest me what is the be
Care to post the solution here (or on a blog)?
On Jan 13, 1:31 pm, marco carminati wrote:
> solved.
> thank you all
>
> On Jan 12, 8:59 pm, marco carminati wrote:
>
> > Dear all,
> > i'm trying to improve the performance during the modify of one of my
> > models'
>
> > I've the classic province
I`ve asked for almost the exact same thing some time ago, but the
answer was that normal python knowledge regarding modules and packages
should help you organize your project.
For example, instead of having several models in one models.py file,
you can create a folder in your app-folder called mod
On 13/01/2011, at 11:45 PM, Олег Корсак
wrote:
> hello. My models.py file became very big and actually I can divide that
> app for 2-3 different apps. But the problem is that almost all models
> are related to one model which is common and will be in different app.
> Is it still a good idea to di
On Thu, Jan 13, 2011 at 1:45 PM, Олег Корсак
wrote:
>
> hello. My models.py file became very big and actually I can divide that
> app for 2-3 different apps. But the problem is that almost all models
> are related to one model which is common and will be in different app.
> Is it still a good idea
thanks, let me check
On Jan 13, 3:06 pm, Kenneth Gonsalves wrote:
> On Thu, 2011-01-13 at 03:43 -0800, evstevemd wrote:
> > I love this,
> > any tutorial on how to create virtual hosts?
>
> django documentation, in the deployment section shows how
> --
> regards
> KGhttp://lawgon.livejournal.com
hello. My models.py file became very big and actually I can divide that
app for 2-3 different apps. But the problem is that almost all models
are related to one model which is common and will be in different app.
Is it still a good idea to divide into different apps and make import
from external ap
On Thu, 2011-01-13 at 03:43 -0800, evstevemd wrote:
> I love this,
> any tutorial on how to create virtual hosts?
django documentation, in the deployment section shows how
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/
--
You received this message b
Hi vamsy,
Can you post your urls.py files? Perhaps you have a recursive inclusion.
Example:
myapp.urls.py
patterns = urlpatterns('',
url(r'^/', include('myapp.urls') # this will result in a recursive
inclusion.
)
-Justin
--
You received this message because you are subscribed to the Goog
Good to hear! Thats a common problem; you need to remember that your models
might not reflect the constraints of the database once you make changes.
Take a look at South for database migrations. It's not too hard to use once
you get used to the workflow.
http://south.aeracode.org/
-Justin
--
Are you using the Django python shell? That error means that your
environment doesn't point to a settings file, which is handled by the Django
shell.
Execute this command within your project directory (wherever you have the
manage.py file):
python manage.py shell
It will open a Python interpre
I have now installed Apache + mod_wsgi locally and run the app. I do not
get the recursion error that is happening on the server. I'd welcome any
suggestions as to how to go about solving this.
Thanks
Derek
On 13 January 2011 08:48, Derek wrote:
> Still not working, but I suspect a recent up
I love this,
any tutorial on how to create virtual hosts?
On Jan 12, 5:02 am, Kenneth Gonsalves wrote:
> On Tue, 2011-01-11 at 04:51 -0800, evstevemd wrote:
> > I have learned alot in these few threads. Now my question was how do I
> > deploy different Django apps using same Apache server.
>
> us
solved.
thank you all
On Jan 12, 8:59 pm, marco carminati wrote:
> Dear all,
> i'm trying to improve the performance during the modify of one of my
> models'
>
> I've the classic province and city structure.
>
> In the 'insert form', using jquery, I can update the city queryset
> after the user c
50 matches
Mail list logo