System checks order

2023-03-13 Thread Jan Siems
Django systems checks are running in an none determinate order. This is a problem if i write my own checks that are dependent to each other and must run in a specific order. E.g. if i import some data to the database in a deployment process where the tables are related to each other they must

Re: Django vs Spring decision

2021-03-06 Thread Jan-Marten de Jong
Derek and Laya, Thank you for the feedback. Best regards, Jan-Marten On Tuesday, 2 March 2021 at 13:41:43 UTC Derek wrote: > You''ll probably not get a unbiased opinion. Devs who work with Java as > their primary language are going to pick Spring; and the opposite in the

Django vs Spring decision

2021-03-01 Thread Jan-Marten de Jong
they all start with Phyton nowadays so that seems to be an upcoing language and Django seems to be one of the most popular Frameworks for Phython. Looking forward to your support in making theis very important decision. Best regards, Jan Marten -- You received this message because you are

One field form - do i need Form class

2020-07-04 Thread Jan Gregorczyk
I want to have search form with just one field. Should I use Form class or is it overkill? -- 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.

Django +Ajax + jQuery problem

2020-07-02 Thread Jan Gregorczyk
My problem is that site registers only the first click on .upvote or .downvote element and ignores next ones. {% extends 'base.html' %} {% load votes_exists %} {% block title %}{{question.title|truncatechars:52}}{% endblock %} {% block content %} {{question.title}} {{question.content}} {% for answe

Custom template tags - instance.templatetag

2020-06-02 Thread Jan Gregorczyk
Hi! How to change my template tag? from django import template register = template.Library() @register.simple_tag def votes_up_exists(answer, user_id): pass how I use it - {% votes_up_exists answer request.user.id %} how I would like to use it - {% answer.votes_up_exists user_id %} -- You rece

DJango upvoting, downvoting - functions in templates

2020-06-02 Thread Jan Gregorczyk
I'm using this package https://pypi.org/project/django-vote/ and i want to do something smilar to this guy https://github.com/shellfly/django-vote/issues/51 - I need function callable in template, which will tell me if user has downvoted or upvoted, but exactly downvoted or exactly upvoted. I

Ajax and Django and jQuery - .attr()

2020-05-31 Thread Jan Gregorczyk
I have a problem with Ajax and Django templates. I'm new to Ajax and jquery. Console log at the end of the script prints undefined. I don't know why let answerid = $(this).attr("answer-id"); doesn't extract attribute from this line: ↑ I also want to know if using template tags in javascript scri

Re: Redirect to login page without losing content of form

2020-05-27 Thread Jan Gregorczyk
Ok. Now I've dealt with this returned None problem, but I still have no idea what to do to keep my form content after clicking submit button. Does next parmeter generated by login_required contain only link or also form content? W dniu środa, 27 maja 2020 15:58:22 UTC+2 użytkowni

Redirect to login page without losing content of form

2020-05-27 Thread Jan Gregorczyk
*I* have problem similar to this one: https://stackoverflow.com/questions/50272631/django-form-data-lost-on-making-login-required-on-post I want answer to be added if user is logged in otherwise redirect user to login page, let him login and then add his answer. My problem is that I lose content

example django rest swagger app done beautifly

2020-03-10 Thread Jan Filips
https://github.com/janfilips/django-rest-beautifly pls star if you like! :) -- 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...@googlegrou

Re: Looking for Django Developers in the Region of Vienna Austria

2020-03-07 Thread Jan Filips
Hi Robert, I'm a senior python developer, with best practices Django currently on a lookout for a job in Vienna My github can be seen on this link http://github.com/janfilips I look forward hearing back from you Jan On Tuesday, July 12, 2011 at 11:38:23 PM UTC+2, Robert Boulanger

Problem with on_delete=models.CASCADE and MariaDB

2019-09-17 Thread Jan Marquardt
everything works as intended. Any help/hints/advices would be appreciated. Best Regards Jan -- 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-user

tip for an upload plugin multiple files at once

2019-02-22 Thread Jan Krňávek
Hi everybody, i have two questions for you. 1] is it possible to upload file with spaces within a name , e.g. "my great picture.jpg"? 2) can anybody suggest me some nice upload plugin / solution with a support for multiple files at once and compatible with django? Thank you very much for you

Upgrading app with settings-dependent migrations

2018-08-23 Thread Jan Musílek
Hi! I have a problem with migrations workflow for which I couldn't find an answer anywhere else. Suppose, that I have an application MYAPP, that uses some third-party apps. These third-party apps require running `makemigrations` command after adding them to INSTALLED_APPS, because their migration

Links to comment function in the backend are wrong

2017-12-19 Thread Jan Kout
don't know what exactly. Maybe I should upgrade the django installation too. Could somebody help me, please? Thank you. Best wishes, Jan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Admin many-to-many inlines - show editable fields from parent models

2017-11-29 Thread Jan Hartman
s the fields from the (virtual) imaginary model. Dne sreda, 29. november 2017 06.14.19 UTC+1 je oseba Matemática A3K napisala: > > > > On Tue, Nov 28, 2017 at 9:12 AM, Jan Hartman > wrote: > >> Hi, I'm having trouble with inlining models with a many-to-many >&g

Admin many-to-many inlines - show editable fields from parent models

2017-11-28 Thread Jan Hartman
Hi, I'm having trouble with inlining models with a many-to-many relationship through the intermediary model. My models are recipes and categories (a category includes multiple recipes and a recipe can belong to multiple categories). Models (simplified): class Recipe(models.Model): title = model

django and w2ui together

2017-09-14 Thread Jan Krňávek
Hello all, i plan to use javascript ui library W2UI in my new project. Can anybody recommend best practice for collaboration between django + w2ui? Thanks in advance. Hanz URL library: http://w2ui.com/web/home -- You received this message because you are subscribed to the Google Groups "Djan

W2UI and Django together

2017-09-14 Thread Jan Krňávek
Hello all, I plan to use W2UI in my new project. Can anybody recommend best practice for collaboration between W2UI and Django? Thank you for advice. Hanz Javascript ui W2UI: http://w2ui.com/web/get-started -- You received this message because you are subscribed to the Google Groups "Django u

Re: After machine reboot "unix:/socket/uwsgi.sock failed (13: Permission denied) while connecting to upstream"

2017-03-21 Thread Jan Miszura
I was having the same issue and it was solved with "sudo chmod 777 /socket". It's not necessary manually create uwsgi.sock. Good luck! Jan On Tue, Mar 21, 2017 at 9:16 AM, valerio orfano wrote: > BTW i ve created the uwsgi.sock manually gave permission 777 and changes > t

Re: Por que Django não é tão popular quanto Ruby on Rails?

2015-12-21 Thread Jan Palach
hon's ecosystem, and for me, is enough. "Yes, yes Java updater "3 billon devices run java". 14 million people have syphills, too, but that doesn't mean I want it." Bruce Lawson. -- *Linkedin*: Jan Palach Profile <http://www.linkedin.com/pub/jan-pala

Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2015-12-19 Thread Jan studený
For anyone who has this error, because static is variable it has to be enclosed with double curly brackets, not with percentage ones. SOLUTION: change {% static('css/bootstrap.min.css') %} to {{ static('css/bootstrap.min.css') }}. Dne čtvrtek 23. července 2015 3:36:52 UTC+2 Yitao Jiang napsal(a)

Re: filter Datetimefield

2014-12-22 Thread Jan Duzinkiewicz
It's hard to answer without seeing what's in your db, and what are the values of ano/mes/dia variables, but: - maybe you do not have pytz package installed (you can install with 'pip install pytz') - though in that case you should get an error when trying to access the results - maybe the day

Re: Force date and time formats to ISO

2014-10-02 Thread Jan Eskilsson
ediately and destroy the material received. (2) All incoming and outgoing emails and any attachments are subjected to a virus scanner and are believed to be free of any virus, or any other defect which might affect any computer or IT system into which they are received and opened. Therefore, it

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Jan Eskilsson
Sorry for budging in but for me this works $("#dialog-form").html(data) rather than load(data) but I get a "Uncaught TypeError: Undef is not a function" error in the Java Script, dont understand why really ? Thank You in Advance Jan Eskilsson 2014-09-24 22:05 GMT+0

Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2013-01-03 Thread Jan Paricka
Same problem here. 1) CommonMiddleware in place 2) debug = False 3) SEND_BROKEN_LINK_EMAILS = True And yet no 404 emails... Otherwise the app is happily emailing... Any thoughts? Thanks Jan On Friday, June 24, 2011 9:56:23 PM UTC+2, Kyle Gong wrote: > > For some reason, I can&#x

Re: mod_wsgi using a subpath in combination with a middleware that calls django.core.urlresolvers.resolve is not working

2012-11-29 Thread Jan Murre
Op donderdag 29 november 2012 09:07:01 UTC+1 schreef Jan Murre het volgende: > > > > Op maandag 26 november 2012 19:50:50 UTC+1 schreef ke1g het volgende: >> >> >> >> On Thu, Nov 22, 2012 at 11:28 AM, Jan Murre wrote: >> >>> Hi, >>> &g

Re: mod_wsgi using a subpath in combination with a middleware that calls django.core.urlresolvers.resolve is not working

2012-11-29 Thread Jan Murre
Op maandag 26 november 2012 19:50:50 UTC+1 schreef ke1g het volgende: > > > > On Thu, Nov 22, 2012 at 11:28 AM, Jan Murre > > wrote: > >> Hi, >> >> I have the following peculiar problem that is very easy to reproduce. >> I use a simple middleware t

mod_wsgi using a subpath in combination with a middleware that calls django.core.urlresolvers.resolve is not working

2012-11-22 Thread Jan Murre
-- This middleware kills Django's urls resolution when used with mod_wsgi using a suppath, like: WSGIScriptAlias /subpath /django.wsgi It seems that the call to 'django.core.urlresolvers.resolve' has some kind of nasty side-effect. I tried things like delaying the ca

Re: "Writing your first Django app" Tutorial Question

2012-10-12 Thread Jan Bednařík
Hi, model Choice is related to model Poll by ForeignKey. All Choice objects related to specific Poll object can by returned by: my_poll.choice_set.all() And that is happening in the template in for loop: {% for choice in poll.choice_set.all %} ... More detailed info is here: https://docs.djang

Re: django 1.4: Error importing email backend module django.core.mail.backends.smtp: "cannot import name sanitize_address"

2012-08-17 Thread Jan Vilhuber
Please ignore this message. Seems to be a local issue with my instlal somehow. jan On Friday, August 17, 2012 2:41:49 PM UTC-6, Jan Vilhuber wrote: > > I see the import in core.mail.backends.smtp, but I don't see > sanity_address in core.mail.message, which is where it'

django 1.4: Error importing email backend module django.core.mail.backends.smtp: "cannot import name sanitize_address"

2012-08-17 Thread Jan Vilhuber
I see the import in core.mail.backends.smtp, but I don't see sanity_address in core.mail.message, which is where it's trying to import from: from django.core.mail.message import sanitize_address Please advise. jan -- You received this message because you are subscribed to the Goo

Sessions not created in Postgres backend

2010-06-14 Thread Jan Murre
to log in after that gives the "Looks like your browser isn't configured to accept cookies." message. The same website in a test enviroment works completely fine. Anyone knows about this kind of sessioning problems? Any help is greatly appreciated. Regards, Jan -- You received this mes

Re: 404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Jan Meier
sing admin. Move admin registrations to an admin.py file and call > admin.autodiscover() in your urls.py file > (seehttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-admin...) > and the problem will go away. Thank you very much, that solved my problem. :-) Regards, Jan -- You re

404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Jan Meier
ubuntu with different projects. To hunt the problem down I tested with mod_wsgi, which has the same problem. Here is my apache configuration with mod_python: ServerAdmin webmas...@localhost DocumentRoot /home/jan/tmp/my_project Options Indexes FollowSymLinks

Getting endless redirects when accessing root url

2010-02-06 Thread Jan
Hi everyone, I'm new to Django and tried to set up a little project using flatpages. Here's my url conf: from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() from django.contrib.flatpages.views import flatpage urlpatterns = patterns('', (r'^/$',

capacity planning (server sizing) for Apache+Django+PostgreSQL

2009-09-21 Thread Jan Ostrochovsky
Hello, are there some calculators or best practises or other tools/methods, how to size server hardware for Django applications from assumed load (concurrent users, etc.)? Thanks in advance for any advice. Jano --~--~-~--~~~---~--~~ You received this message beca

Re: Unique fields that allow nulls

2009-09-09 Thread Jan Ostrochovsky
parameter defined and in that case it must be unique, or it is not defined at all. On Sep 9, 4:35 pm, Karen Tracey wrote: > On Wed, Sep 9, 2009 at 9:14 AM, Jan Ostrochovsky > > wrote: > > > Hello, > > > I have the exact need, as author of this question: > > >http:

Unique fields that allow nulls

2009-09-09 Thread Jan Ostrochovsky
Hello, I have the exact need, as author of this question: http://stackoverflow.com/questions/454436/unique-fields-that-allow-nulls-in-django. I want a value to be unique, if it is not NULL. Database backend allows such construction, but in Django admin I have got this error message when saving f

Re: automatic initialization of sample data

2009-09-09 Thread Jan Ostrochovsky
ion to another version, it is unthinkable to put production data in the code ;). But when developing application (currently my case), there is only relatively small set of sample testing data, and I see as big avantage and developer's comfort, to be able modify sample data accordingly wi

Re: multi-table inheritance - how to access child object methods/attributes

2009-09-09 Thread Jan Ostrochovsky
t;                 sub = getattr(self, field, None) >                 return sub.__unicode__() >             except ObjectDoesNotExist: >                 pass > >         return u'Document {0}'.format(self.id) > > On Sep 8, 9:01 am, Jan Ostrochovsky > wrote: > &g

Re: multi-table inheritance - how to access child object methods/attributes

2009-09-08 Thread Jan Ostrochovsky
+ self.id_ But I'd prefer solution, where Document class does not know about its child classes (AccountingDocument, etc.). Any idea? On Sep 8, 8:31 am, Jan Ostrochovsky wrote: > Hello, > > class Document(models.Model): >   ... > > class AccountingDocument(Document): &g

Re: Error in setting up psycopg2

2009-09-08 Thread Jan Ostrochovsky
Hi Simon, I had also problems with psycopg2 on Mac OS X. First with development server (python manage.py runserver), and when solved, later also with Apache. Finally I decided for Linux on production server (with Apache), and let Mac OS X on development workstations (with runserver). If such se

Re: psycopg2.OperationalError: FATAL: role "root" does not exist

2009-09-08 Thread Jan Ostrochovsky
How exactly did you put your database user? What is content of your pg_hba.conf? Maybe some parts of this could be helpful: http://sharpe-s-postgres.blogspot.com/2009/09/how-to-install-and-configure-postgresql.html/ On Sep 7, 11:15 pm, Zico wrote: > On Tue, Sep 8, 2009 at 3:06 AM, Angel Cruz wr

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-07 Thread Jan Ostrochovsky
I won't compare PostgreSQL and MySQL as whole, because: - I do not know MySQL so well, as PostgreSQL - another flamewar could arise ;) I am only saying: my experience with Django+PostgreSQL is far better, than Django+MySQL, see http://groups.google.com/group/django-users/browse_thread/thread/3abf

Re: Django, MySQL, unicode

2009-09-07 Thread Jan Ostrochovsky
Hi Tracy, less than two months ago, we were trying to use MySQL in our Django project (because we were not successful with installation of PostgreSQL adapter for Python psycopg2 on Mac OS X). We had similar problems as you have, and ugly, but only found, solution was to add encode (or decode? I

multi-table inheritance - how to access child object methods/attributes

2009-09-07 Thread Jan Ostrochovsky
Hello, class Document(models.Model): ... class AccountingDocument(Document): ... How am I able to access methods an attributes of some AccountingDocument instance (e.g. its __unicode__()) from Document instance? How am I able to retrieve child object from its parent? I tried to search on t

Re: automatic initialization of sample data

2009-09-07 Thread Jan Ostrochovsky
r chain of init_sample_data() functions: > > $ python manage.py shell > > >>> import myproject.myapp.models as m > >>> m.run_data_inits() > >>> ^D > > Bill > > On Thu, Aug 20, 2009 at 9:25 AM, Jan Ostrochovsky < > > jan.ostrochov...

Re: How can I return a nested object from django to my flex project?

2009-08-21 Thread Jan Hülsbergen
the AMF stacks on both sides. That way, nicely typed objects go over the wire both ways. I know this is a bit vague, but so is your question. I still hope it gives you a nudge in the right direction. Use PyAMF. Use ValueObjects. ~jan --~--~-~--~~~---~--~~ You rece

Re: Python FOR loop syntax question

2009-08-21 Thread Jan Hülsbergen
On Fri, Aug 21, 2009 at 21:09, Joshua Russo wrote: > Why does this not work? >   >>> import decimal >   >>> tst = {'myTst': (decimal.Decimal, 0)} >   >>> for k, v in tst: >   ...  print('%s: %s' % (k, v)) >   ... >   Traceback (most recent call last): >     File "", line 1, in >   ValueError: too

Re: Using models inside settings.py

2009-08-21 Thread Jan Hülsbergen
be in sys.path anyway, so a simple 'import local_cms_settings' should just work. Even if not, putting the directory into sys.path is much less evil/hacky than using exec/eval. HTH ~jan --~--~-~--~~~---~--~~ You received this message because you are subsc

automatic initialization of sample data

2009-08-20 Thread Jan Ostrochovsky
question is: is there some existing solution for this (in Django or its extensions), which we can use, and not reinvent it, or not? Any idea? (We are using Django Evolution, which is good help, but only when changes are not too dramatic.) Thanks in advance. Jan Ostrochovsky

Re: multi-table inheritance and modification of OneToOneField options

2009-08-07 Thread Jan Ostrochovsky
Tredinnick wrote: > On Thu, 2009-08-06 at 07:15 -0700, Jan Ostrochovsky wrote: > > Hello, > > >http://docs.djangoproject.com/en/dev/topics/db/models/#multi-table-in... > > says: > > The inheritance relationship introduces links between the child model >

multi-table inheritance and modification of OneToOneField options

2009-08-06 Thread Jan Ostrochovsky
optionally (Invoice Address) and to one class it is required (Residence Address). Base class is Address.) Thanks in advance. Jan Ostrochovsky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Extending AdminSite

2009-07-24 Thread Jan-Herbert Damm
Hi, thanks a lot, that will keep me occupied for a while! Dr.Hamza Mousa wrote: > Try those : [tutorials]... jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Extending AdminSite

2009-07-23 Thread Jan-Herbert Damm
impse ... Could you recommend a tutorial (in addition to the official one), that teaches more of these basics? jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: A Story of Dynamic Attribute Name Clashes

2009-07-08 Thread Jan-Herbert Damm
python and django learner. jan --~--~-~--~~~---~--~~ 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

documentation usage

2009-06-28 Thread Jan-Herbert Damm
import django" but with no luck. A hint to get me on the right track would be helpful. jan -- Bitte beachten Sie auch die Rückseite dieses Schreibens! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

floatformat tag and cmemcache

2009-06-12 Thread Jurie-Jan Botha
It feels ridiculous to me but we've got a filter tag that's making a mess of our cache. Here's the deal: * We cache lots of stuff on our site using low level cache api and cmemcache. * We've got a float field on a model that we cache. * When we use this float field in a template it works fine. B

Re: comparisons with java framework

2009-02-23 Thread Jan Claeys
rce... -- Jan Claeys --~--~-~--~~~---~--~~ 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-u

Re: Project Scope Thread

2009-01-15 Thread Jurie-Jan Botha
My apologies for the ambiguity of the question. At least you got my drift. Thanks for the advice. It gave me a better understanding of how to go about the problem. On Jan 16, 4:02 am, Malcolm Tredinnick wrote: > On Thu, 2009-01-15 at 01:12 -0800, Jurie-Jan Botha wrote: > > I would li

Project Scope Thread

2009-01-15 Thread Jurie-Jan Botha
I would like to run a thread for an entire Django project. I would like to house the code that starts this thread up inside an application. Currently I placed the code in the '__init__.py' in the root of my Django application, but when I start the server using 'runserver' is seems to run this cod

Project Scope Thread

2009-01-15 Thread Jurie-Jan Botha
I would like to run a thread for an entire Django project. I would like to house the code that starts this thread up inside an application. Currently I placed the code in the '__init__.py' in the root of my Django application, but when I start the server using 'runserver' is seems to run this cod

Re: DjangoCon keynote transcript/summary

2008-09-17 Thread Jan Oberst
The next slide is from Flickr and has nothing to do with Django. Yet there's quite a few debugging tools for SQL and profiling and so on. See http://www.djangosnippets.org/tags/debug/ Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: nfa - how to access the standard admin views from a custom view?

2008-07-06 Thread Jan Rademaker
I think i've got it. Instead of putting this logic in a custom view I should just override the change_view method of my custom ModelAdmin. On Jul 6, 1:46 pm, Jan Rademaker <[EMAIL PROTECTED]> wrote: > Hello, > > I'm in the process of converting an app to nfa. In this app

nfa - how to access the standard admin views from a custom view?

2008-07-06 Thread Jan Rademaker
Hello, I'm in the process of converting an app to nfa. In this app some models have their own change view. Some of these views fall-back to using the standard amin view based on some condition; like this: from django.contrib.admin.views.main import change_stage def my_view(request, model_id):

Re: /admin Cross-Site Scripting (XSS) issue!

2008-05-07 Thread Jan Rademaker
It does work, make sure you're not logged in. $ lynx -source -dump http://localhost:8000/admin/%22%3E%3Cscript%3Ealert%283939%29%3C/script%3E/ | grep alert alert(3939)/" method="post" id="login-form"> On May 7, 9:10 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Wed, May 7, 2008 at 1:45 P

Execute command when creating object with admin interface

2008-04-09 Thread Jan Giesecke
? Thank you for your help, Jan --~--~-~--~~~---~--~~ 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

Re: Import connection error

2007-12-21 Thread Jan Rademaker
On Dec 21, 5:46 pm, newDjangoer <[EMAIL PROTECTED]> wrote: > I am experiencing an error when I try to run the following: > > >>> from django.db import connection > > Traceback (most recent call last): >   File "", line 1, in >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > pyt

Re: PYSQLITE

2007-12-20 Thread Jan Rademaker
newDjangoer wrote: > I am installing pysqlite 2.4.0. I have python 2.3.5 installed and > sqlite 3.1.3. When I run the python setup.py build I get this : > > skcompxp:~/Desktop/pysqlite-2.4.0 sptxk$ python setup.py build > running build > running build_py > running build_ext > building 'pysqlite2

Re: Any SELECT returns no results via Django

2007-12-20 Thread Jan Rademaker
On Dec 20, 1:41 am, Gloria W <[EMAIL PROTECTED]> wrote: > I am boggled. A SELECT from the MySql command line works just fine. > But within Django, it returns nothing. It doesn't matter what SQL > statement I issue. > > Here is my syntax: > > from django.db import connection > cursor = connect

Re: Any SELECT returns no results via Django

2007-12-20 Thread Jan Rademaker
On Dec 20, 1:41 am, Gloria W <[EMAIL PROTECTED]> wrote: > I am boggled. A SELECT from the MySql command line works just fine. > But within Django, it returns nothing. It doesn't matter what SQL > statement I issue. > > Here is my syntax: > > from django.db import connection > cursor = connect

Re: Models with multiple foreignkeys ( adding values )

2007-12-19 Thread Jan Rademaker
On Dec 19, 8:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello Ben, > > I'm not really sure what you mean by leave the _id out. > What i did with the sponsor_id and method_id was getting the correct > objects from the Method and Sponsor class > He means there is no reason the append

Re: Outputting MS word-friendly format

2007-12-19 Thread Jan Rademaker
On Dec 19, 6:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks.. that's close, but I can't seem to get it to work properly > from within Django; > > They give an example like this: > def MakeExample1() : > doc = Document() > ss = doc.StyleSheet > sec

Re: DateField and output/input versus SelectDateWidget

2007-12-19 Thread Jan Rademaker
ing. > This is not in sync with the regular date/time widgets found in django.newforms.widgets. Please report this in trac. Regards, Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: completely escaping an included template

2007-12-18 Thread Jan Rademaker
On Dec 18, 8:12 pm, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > Hello everyone, > > trying to upgrade to the latest trunk, I'm wrestling a bit with the > autoescape function. Talking about embed-code for an enduser, I used to > write: > > {% include embedded_player.html %} > Copy-paste t

Re: Weird problem with request.POST, correct data not coming out from request.POST

2007-12-18 Thread Jan Rademaker
quest.POST['delete'] , but this doesnot pick the list, > but instead gets me the last value in the list! See http://www.djangoproject.com/documentation/request_response/#querydict-objects. Regards, Jan --~--~-~--~~~---~--~~ You received this message be

Re: get_absolute_url not working as expected

2007-12-17 Thread Jan Rademaker
> If that does not get you any further, could you paste your complete > model on dpaste.com? Never mind dpaste, just post to this group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: get_absolute_url not working as expected

2007-12-17 Thread Jan Rademaker
dented right, e.g. did you mix spaces and tabs? Did you try to raise an exception in the method? A simple `assert False` before `return self.id` should do. If that does not get you any further, could you paste your complete model on dpaste.com? Regards, Jan Rademaker --~--~-~--~~---

Re: Negation in queries

2007-12-13 Thread Jan Rademaker
x27;m not sure if this is exactly the same as 's2 <> 1', though. Any ideas? Regards, Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

German django forum

2007-11-13 Thread Jan Meier
Hi, there is a new Forum for django help/support in german, if you speak german check it out: http://www.django-resource.de/ See you there, Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

mysql error

2007-09-30 Thread Jan Stavel
2_0.MYI' (Errcode: 2)") 1 {% load admin_list %} 2 {% load i18n %} 3 {% if cl.has_filters %} 4 {% trans 'Filter' %} 5 {% for spec in cl.filter_specs %} 6 {% filter cl spec %} 7 {% endfor %}{% endif %} 8 Now I can neither insert new

cloned admin behind apache proxy - firefox doesnot want to import base.css from login.css

2007-05-16 Thread Jan Stavel
all stylesheets and admin looks nice. Firefox does not and admin is just textual (without any layout). Please give me a hint to set up proxy/tunnel, for django application. Thanks, Jan Stavel --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Problem with django-multilingual and admin interface

2007-05-13 Thread Jan Söderback
On May 13, 10:57 pm, "Jure Čuhalev" <[EMAIL PROTECTED]> wrote: > I was hit by the same problem. If you add a property to your class > Play (not to the Translation one) then Translation will be able to > bound to something visible in Admin and it will work. That worked. Thank you very much! --~-

Problem with django-multilingual and admin interface

2007-05-13 Thread Jan Söderback
Hello, I'm trying to use Marcin Kaszynski's django-multilingual plugin, but when I try to use the add action in the admin interface for a translatable class, I get an exception: - Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py"

Re: catalog of django apps?

2007-03-11 Thread Jan Claeys
name it "Hot Club de France"... ;-) See: <http://en.wikipedia.org/wiki/Quintette_du_Hot_Club_de_France> -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Problem parsing template

2006-10-10 Thread Jan Bruvoll
You're using curly brackets for the first loop and normal ones for the other. Best regards Jan [EMAIL PROTECTED] wrote: > Hi, I'm new to django and I was going through the polling tutorial when > I ran into this problem. It seems like django is not parsing the tags > in

Re: Django patch!

2006-09-02 Thread Jan Claeys
Op vr, 01-09-2006 te 23:55 -0500, schreef Jacob Kaplan-Moss: > On Sep 1, 2006, at 7:05 PM, Jan Claeys wrote: > > The Akismet "spam protection" does more bad than good, that's going > > on. (Someone will ask you to submit your IP to be added to a whitelist >

Re: Django patch!

2006-09-01 Thread Jan Claeys
ot;bayesian" techniques or something else that can "learn" from its mistakes? -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Yet another Django application

2006-09-01 Thread Jan Claeys
N setting in the settings file. > > I'll let you know if I finish an ubuntu specific one. Also look at the new init replacement ('upstart') then: <http://www.netsplit.com/blog/work/canonical/upstart.html> <https://wiki.ub

Re: geographic targeting with django

2006-08-18 Thread Jan Claeys
Op wo, 16-08-2006 te 10:17 +1000, schreef Ian Holsman: > does anyone know of a python module/interface to allow me to determine > what state a given IP# is in? Don't depend on those GeoIP (etc.) databases mentioned to be always correct... --

Re: session management

2006-08-13 Thread Jan Claeys
Op do, 10-08-2006 te 09:15 +, schreef uselpa: > Unless you check that the IP from which the request is coming is the > same IP from which the initial request came. Which breaks if the user is using a pool of proxy servers... -- Jan

Re: Public Domain ( was Re: Full Text Search w/ MySQL)

2006-08-12 Thread Jan Claeys
ish it for free forever, but you can't legally say "I'm not the author anymore" or "I refuse all my rights (and plights) as an author". -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: VMWare image for running/developing Django

2006-08-12 Thread Jan Claeys
ts of software that you don't need for a Django VmWare image (things like OOo2), so it should be easily possible to fit this in less... (I think less than 500 MiB should be possible.) -- Jan Claeys --~--~-~--~~~---~--~~ You received this message becaus

Re: Django on win xp

2006-07-31 Thread Jan Claeys
Op vr, 21-07-2006 te 22:37 -0700, schreef Tyson Tate: > Wait, Linux or XP? Or Linux _on_ XP: <http://colinux.org/> ? :-) -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: Is Django the framework I've been looking for?

2006-07-31 Thread Jan Claeys
doesn't run in a console and is smaller(!)... ;-) -- Jan Claeys --~--~-~--~~~---~--~~ 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@googlegrou

Re: Generic views and dates in the future

2006-07-07 Thread Jan Claeys
E.g. I'm sure some people don't want to view past events (e.g. in case of an event calendar). And other people might have other requirements that we can't even imagine yet... -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you a

Re: Packaging django/flup for ubuntu

2006-07-04 Thread Jan Claeys
first item there) as well as on-line on <https://help.ubuntu.com/>. -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Serious Noobie question, what the $ for in urlpatterns.

2006-06-06 Thread Jan Claeys
Op ma, 05-06-2006 te 21:44 -0500, schreef Jeremy Dunck: > Kodos is a nice utility for fiddling with regexs: 'Kiki' is another one, written in wxPython. -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed

  1   2   >