Recreation of foreign key constraints when changing type of referenced primary key

2022-03-22 Thread Gregor Jerše
to BigAutoField to be future-proof, but would prefer not to write migrations by hand. Regards, Gregor -- 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

Missing ORDER BY in subselect?

2014-04-16 Thread Gregor Jerše
of the second query are correct, since subquery is evaluated first (with ORDER BY clause included). It actually looks similar to an old bug #12328, which was marked as fixed long time ago and I am using Django 1.6. Am I missing something? Many Thanks, Gregor -- You received this message

Using Google Fusion tables as database

2010-05-29 Thread Gregor
Hi, Is it possible to use Django with Google Fusion Tables http://code.google.com/apis/fusiontables/ as the backend? -- 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

formsets management_form

2010-03-04 Thread gregor kling
Hello, I may do something, what the formsets are not intended for. I have forms which assort data of several different Models. This is because of aggregating data in logical blocks in the UI. Additionally I have some fields, which have to be filled dynamically. There is as well the possibility

Re: accessing pk of an existing object in ModelForm

2009-11-23 Thread Gregor Kling
form = NF >> >> and deeper in the underground in a method >> I use the following for the checks. >> self._kwargs.has_key('instance'): >> pk = self._kwargs['instance'].pk >> >> Now the question. Is there a more canonical form of accessing >>

Re: machinetags with namespaces and values, a ready-to-use branch

2009-10-27 Thread Gregor Müllegger
join(self.tags[i:i+10])) assert len(l) == 10, len(l) def test4_get_tag(self): for tag in self.tags: assert get_tag(tag) Gregor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: How to start this dev server

2009-10-14 Thread Gregor Müllegger
Hi, please try to create an empty __init__.py file in your ~/nimma/ directory. Gregor On 15 Okt., 00:50, David <ww...@yahoo.com> wrote: > Hello django community, > > I checked out a django project from svn and tried to start dev server, > however I met > > d...@sgbr:~

Re: Django test suite does not discover test method "test_string_regex"

2009-08-28 Thread Gregor Müllegger
I discovered that it gets not execute by looking at the coverage statistics. But you're totally right. I had a second method that is called the same. Very embarrassing for me. Sorry. Gregor 2009/8/28 Karen Tracey <kmtra...@gmail.com>: > On Thu, Aug 27, 2009 at 2:21 PM, Gregor Mülle

Django test suite does not discover test method "test_string_regex"

2009-08-27 Thread Gregor Müllegger
name like "test_string_regex2", "test_string__regex" or "test__string_regex" it is discovered by the test suite. I also can execute the single test with the "python manage.py test applabel.TestCaseName.test_string_regex". This seams very scary to m

Re: ModelForm/clean_

2009-03-06 Thread gregor kling
Daniel Roseman wrote: > On Mar 6, 10:37 am, gregor kling <gregor.kl...@dvz.fh-giessen.de> > wrote: >> Hello List, >> >> I have a form inheriting from ModelForm. >> class C(ModelForm): >> >> >> class Meta: >&g

ModelForm/clean_

2009-03-06 Thread gregor kling
Hello List, I have a form inheriting from ModelForm. class C(ModelForm): class Meta: model = SomeModel def clean_somefield: enhanced checks Now my problem is how to access session data (request.session) from within the clean method. Does anyone have a clue

Re: Problems with multithreading in fastcgi environment

2009-02-15 Thread Gregor Müllegger
') from the subprocess module? I already tried it with multiprocessing, but it hasn't worked - just like threading. It doesn't get executed. Thanks again, Gregor 2009/2/15 Malcolm Tredinnick <malc...@pointy-stick.com>: > > On Sat, 2009-02-14 at 11:31 -0800, Gregor Müllegger

Problems with multithreading in fastcgi environment

2009-02-14 Thread Gregor Müllegger
ted as long as i try to do it in a new thread. If i block the view with processing the video in the same thread as the request, everything works ok. Does anyone know if there are known problems with multithreading in an fcgi environment? I hope someone can help me ... this bugs me quite a while. T

VIM Plugin: Django Projects

2008-10-06 Thread Gregor Müllegger
=2392 It will only work on Unix-like systems and is only tested on linux. To install it just place it in your ~/.vim/plugin directory. Please tell me if you like the plugin and what else can be improved. Don't be shy and throw all your critisism at me. Gregor

Re: Customizing the error page

2008-08-18 Thread Gregor Müllegger
The django-command-extensions manipulate the debug page to add an interactive console. They provide a new management command for that: "runserver_plus" Maybe you can get some know-how from them:

Re: Adding fields to form in form.clean()

2008-06-25 Thread Gregor Müllegger
Maybe you could use django's form wizard: http://www.djangoproject.com/documentation/form_wizard/ On Jun 25, 9:27 am, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > depending on the values from form.cleaned_data, I want to present different > input fields to the user. Example: > The

Re: reloading models in the shell

2008-06-12 Thread Gregor Müllegger
gt; models = reload(models) >>> # Do more stuff with your new models Gregor On 12 Jun., 03:01, "Gene Campbell" <[EMAIL PROTECTED]> wrote: > I'm very new to Python and Django, I'm going through building some > models for the first time. > When I load the models in

Re: Suggestions on resolving broken link errors for free comment app

2008-06-05 Thread Gregor Müllegger
anthor location an alter the hardcoded links. (also quick but i cannot think of another solution) Gregor On 6 Jun., 01:13, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm using Django's free comments app for my site's blog app, but am > getting a lot of broken link err

Re: Apache FastCGI & Django

2008-06-05 Thread Gregor Müllegger
Here is a sample configuration from one of my sites (domains and paths are altered): FastCGIExternalServer /var/www/myproject/fcgidummyfile.fcgi -host 127.0.0.1:3044 ServerName example.com ServerAlias www.example.com DocumentRoot /var/www/example.com Alias

Re: ASP.Net GridView Equivalent in Django

2008-06-05 Thread Gregor Müllegger
You are searching an UI Widget, is that right? Django doesn't provide any builtin UI stuff, except the templatetages. But you could try some of the following JavaScript libraries which inculde UI stuff: http://jquery.com/ with http://ui.jquery.com/ http://dojotoolkit.org/ http://extjs.com/ (i

Re: Capturing full URL string

2008-06-04 Thread Gregor Müllegger
/#django-middleware-common-commonmiddleware To prevent the trailing slahs, set in your settings module APPEND_SLASH to False. Gregor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Relative views in urls.py

2008-05-30 Thread Gregor Müllegger
Your last example is near the typical solution. You could pass as second element of the "url-tuples" a callable object e.g. a view. from django.conf.urls.defaults import * import views urlpatterns = patterns('', (r'^(?P[a-z0-9_-]+)/$', views.view_city),

Re: local import or not for django apps?

2008-05-29 Thread Gregor Müllegger
ooler than just doing a "import spam" because you can also call a file "django.py" or "sys.py" in your app without collidating with the standard library and athors thirdparty packages. Gregor --~--~-~--~~~---~--~~ You received

Re: Memcached hangs & never responds?

2008-05-02 Thread Gregor Hochmuth
I think this might be it, thank you *so much* Karen! On May 2, 1:55 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 6:51 PM, Gregor Hochmuth <[EMAIL PROTECTED]> wrote: > > > Hello, > > Has anyone experienced the

Memcached hangs & never responds?

2008-05-01 Thread Gregor Hochmuth
Hello, Has anyone experienced the following symptom with Memcached before? Intermittently and unpredictably, requests to our production web server will start "hanging" in the "Waiting for response..." loop and never get any further. When we restart memcached on the server, the request executes

User tampered with session cookie

2007-01-16 Thread Gregor Kling
question is how to delete a session explicitly. I want to give the user the possibilty to logout. I do not find anything to delete the session? thx. -- Gregor Kling DV-Zentrum Fachhochschule Giessen Tel: 0641/309-1292 E-Mail: [EMAIL PROTECTED

Re: iteration over non-sequence and other quirks

2006-12-20 Thread Gregor Kling
Damn me, it was all my fault :-) Django gave me exactly, nearly, the hint. Regrettably django provided me with the false line number. So I have searched everywhere but the right position. django claimed 'The iteration over non sequence error' at the outer for-loop, but the problen was indeed in

Re: iteration over non-sequence and other quirks

2006-12-20 Thread Gregor Kling
Gregor Kling wrote: {% for ndata in ndatas %} <--- iteration over nonsequence Netzdaten Ethernet-Adresse:* DHCP aktivieren ?:* {% for doption in dhcpopti

iteration over non-sequence and other quirks

2006-12-20 Thread Gregor Kling
Hello, I do get an iteration over non sequence error. If I make a normal in python code everything works as assumed, but I if let django iterate over , it says iteration over The weird thing is, that it worked sometime ago, but I can't recall whats the difference between know and the time

Re: django something wrong with many to many relationship

2006-11-30 Thread gregor
thanks man I find error, I forget pass joined attribute. Thanks Again --~--~-~--~~~---~--~~ 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

django something wrong with many to many relationship

2006-11-30 Thread gregor
Hello i have manytomany relations (database PostgreSql 8.1.5) like this: class Photograph(models.Model): name = models.CharField(maxlength=200) email = models.EmailField() age = models.IntegerField() categories = models.ManyToManyField(Category) joined =

django model question about FileField

2006-11-29 Thread gregor
this? It looks like I should write a method that override a column option but I don't know how. Thans for any help Gregor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to