Re: main page have stopped work after creating poll app

2018-05-28 Thread Florian Schweikert
It seems you don't have a "main" page. The page you saw was a placeholder starting page if there are no other urls defined. If you want to deliver something at / you have to add it to urls.py PS: pasting screenshots of code is a very bad habit. On 26/05/18 14:46, Dmitry Sobolev wrote:

Re: Filter Json boolean data

2018-01-19 Thread Florian Schweikert
Hi, On 19/01/18 11:50, tango ward wrote: >     # Check who the winner of the match >     if data['radiant_win'] == 'False': You are comparing a boolean with the *string* 'False', remove the ' and try again. >     j_data['Winner'] = data['dire_name'] >     else

database names in queries on multiple databases

2017-07-10 Thread Florian Wegscheider
TLTR: Django does not include database names in SQL queries, can I somehow force it to do this, or is there a workaround? The long version: I have two unmanaged legacy MySQL databases (Note: I have no influence on the DB layout) for which I'm creating a readonly API using DRF on Django 1.11 an

Re: pass context to overridden templates

2017-05-04 Thread Florian Schweikert
On 03/05/17 15:53, cjdcordeiro wrote: > Probably the best would be overriding the app's default class based > view, but when I look at it > (https://github.com/django-notifications/django-notifications/blob/master/notifications/views.py#L29) > it doesn't have a get_context method or anything I can

Re: Django 1.11 released

2017-04-05 Thread Florian Apolloner
Not on purpose no -- if it doesn't work with 4.1 that is a bug On Wednesday, April 5, 2017 at 11:07:13 AM UTC+2, jorr...@gmail.com wrote: > > Is the required version of Pillow pinned at 4.0.0? I upgraded to Django > 1.11 and from Pillow 4.0.0 to 4.1.0 but now Django doesn't start because it > sa

Re: No installed app with label 'province'.

2017-02-09 Thread Florian Schweikert
ts for investigating the problem: * What does you INSTALLED_APPS look like? * The code of your ModelAdmin wogether with where you trying to register it. (including imports) * Are your models working correctly? Did creating migrations and applying them work? -- regards, Florian -- You receive

Logs bloated by template variable not found in DEBUG level

2017-02-08 Thread Florian Perrodin
Context, Template context = Context({}) template = Template("{{ avar }}") Is there a workaround? Another way to check properly if a variable exists? - Note that I want to see other DEBUG messages, so I don't want to change the log level Best regards Florian -- You received

Re: cache.get_or_set : function name is misleading

2016-08-31 Thread florian
Le mercredi 31 août 2016 14:19:39 UTC+2, daniel.franca a écrit : > > But it's okay, isn't it? > I mean, *add* is used to add the key if the key doesn't exist. > *set* on the other hand, will set the value anyway. > > In the case of *get_or_set *the set should work like an *add *because > it'll b

cache.get_or_set : function name is misleading

2016-08-31 Thread Florian Iragne
ction name and function main behaviour. However, i think it's useful to live a comment about this for other devs. Cheers Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-30 Thread Florian Schweikert
attern is called 'post_detail'. Try something like: {% url 'post_detail' pk=post.pk %} More information is available in the docs: https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#url -- Florian -- You received this message because you are subscribed to the Google Grou

Re: selecting an item whose relations are all in some desired set

2016-05-17 Thread Florian Iragne
Le 17/05/2016 16:18, David Xiao a écrit : Hi Florian, That's technically correct, but the universe of all possible items might be very large or even infinite so it's not really practical to do it that way. I understand, but i don't now your case precisely. In my case, i do

Re: selecting an item whose relations are all in some desired set

2016-05-17 Thread florian
1, 2, 3 but not bundles 4, 5 > (because item3 is not in special_items). > > The query you gave would select no bundles, and the query > Bundle.objects.filter(items__in=[special_items]) would select all the > bundles. > > Dave > an exclude on all items that are not in

Re: 1.8 or 1.9?

2016-05-12 Thread Florian Schweikert
ll as python package, like the new admin theme and PermissionMixins/django-braces Upgrading a minor version is mostly easy and a good thing to learn ;) -- Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

How to use django's admin "filter_horizontal" in my app ?

2016-05-09 Thread Florian Supper
{% bootstrap_icon "star" %} Create {% endbuttons %} {% endblock %} #urls.py urlpatterns = [ url(r'^test/add/$', views..CreateTestView.as_view(), name='create_test'), ] Thanks for your help! BR Florian -- You received this mess

Re: NAS using Django

2016-03-10 Thread Florian Schweikert
hing like owncloud[1] if I get you right. > So, I wanted to connect my Django web application with Samba File > sharing sever so that I can access it from an IP typed at a web-browser. If Django running on the NAS, there is no need to use smb. -- Florian [1] https://owncloud.org/ -- You receiv

execute python through ajax

2016-03-09 Thread Florian Hoedt
Hello Django users, I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. How would I achieve something like this? I am trying to understand the forms section o

Re: Absolute beginner question -- recipes

2016-02-29 Thread Florian Schweikert
', context) Maybe you can simply use a generic DetailView: https://docs.djangoproject.com/es/1.9/ref/class-based-views/generic-display/#detailview -- Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: like query django

2016-01-19 Thread Florian Schweikert
y of these. of course it doesn't, you didn't define a like/... url pattern -- Florian -- 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 djang

Re: n00b question about displaying data in order by day

2015-11-07 Thread Florian Schweikert
fine a default ordering for your model: https://docs.djangoproject.com/en/1.8/ref/models/options/#ordering or sort it in the view: https://docs.djangoproject.com/en/1.8/ref/models/querysets/#django.db.models.query.QuerySet.order_by -- Florian -- You received this message because you are subscribed

Re: Admin: Unknown fields

2015-09-29 Thread Florian Schweikert
bably because of the ',' at each line end. I think genus_id became a tuple of fields, remove them and try again :) -- Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: How to serve any static directory?

2015-09-01 Thread Florian Schweikert
ot possible to serve them with nginx/apache? regards, Florian -- 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.co

Re: Using ModelForms

2015-08-31 Thread Florian Schweikert
On 25/08/15 01:25, Sait Maraşlıoğlu wrote: > default = timezone.now() Beware, timezone.now() will be evaluated once when the module is loaded, not on save if you might think. Use default = timezone.now without calling it to get the current value on save. -- You received this message because you

Re: I have error like Type Error save() takes at least 2 arguments (1 given) in Django project.

2015-08-31 Thread Florian Schweikert
See docs for .save() overwrite: https://docs.djangoproject.com/en/1.8/ref/models/instances/#django.db.models.Model.save regards, Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

Re: ForeignKey Fields null=True does not imply blank=True

2015-08-26 Thread Florian Schweikert
ses, but don't have names in your current data. You can now easily force the user to set his/her name when changing settings, without overwriting fields in a form. regards, Florian [0] https://docs.djangoproject.com/en/1.8/ref/models/fields/#null -- You received this message because you ar

Re: 'self' is not define

2015-08-19 Thread Florian Schweikert
to add request.user to the product in your view where you save it. Use something like product = form.save(commit=False) # [0] product.user = request.user product.save() And you should move your form to forms.py and add a view to views.py. -- Florian [0] https://docs.djangoproject.com/en/1.8/top

Re: Models and relationships

2015-07-06 Thread Florian Schweikert
errors ?? I think you forgot about "_set". Try something like: Location.contact_set.all() And please don't use AutoField, db_column and primary_key until you have a good reason. Also ForeignKey fetches an object of the connected type, not an id, so "contactid", ... is confu

Re: Is it possible to connect django to apache derby as a database?

2015-06-05 Thread Florian Apolloner
If it speaks SQL you can just write your own backend for it, but that is probably a bit of work. On Friday, June 5, 2015 at 2:05:40 PM UTC+1, Uk Jo wrote: > > I am a newbie about Django and Python. But I attended the basic lecture of > python. So I will implement my web application. > I want to

UnicodeError while searching in haystack/whoosh index

2015-04-28 Thread Florian Schweikert
Any ideas/solutions? Many thanks, Florian [1] http://fpaste.org/216170/30221364/ -- 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..

Re: static files and DEBUG = False

2015-04-24 Thread Florian Schweikert
ives > status code 500. > > Any idea why this happens? It's a bad idea to serve statics with Django. It's ok for debugging, but not for production. If you already use apache serve static files with Apache directly. -- Florian -- You received this message because you are subsc

Re: Django phonegap CORS

2015-03-18 Thread Florian Auer
single page application, or phonegap app), I'd suggest you to work with > default Django cookie session and not with a token based authentication. > This will be simpler since once you set the cookie, the browser will take > care off passing it over page requests and you will not ne

Re: Django phonegap CORS

2015-03-13 Thread Florian Auer
Hello Filipe Thank you for the reply. Well the $http object was till now unknown for me.. there we can see how poor my AngularJS knowledge is till now. But as far as i understood the documentation i am not able to bring up a browser window by this that takes over the control of the app. The

Re: Django phonegap CORS

2015-03-13 Thread Florian Auer
Thanks to Filipe, the asynchronous request to django is working correctly. A request to the endpoint url results in a JSON response with the token in it. But now I have another gap in my "logic". Inside this angular app the django site is requested via a call like this, to takeover control from

Re: Django 1.8b2: m2m signal raising ProtectedError now affects unrelated queries inside tests

2015-03-12 Thread Florian Apolloner
'm completely wrong with my > hypothesis), that would be appreciated. > At the end of requests, the transactions are reset anyways, leakage into other requests (persistent connection or not) cannot happen. Cheers, Florian -- You received this message because you are subscribed

Re: Django phonegap CORS

2015-03-12 Thread Florian Auer
Thank you for your reply Filipe The question behind was: How to implement a cross domain communication between a phonegap App and a django web project You're right I forgot the django site for the server-side headers in my mind. I'll give it a try with the plugin and test how far i come with

Django phonegap CORS

2015-03-11 Thread Florian Auer
Hello I'm am stuck in a problem dealing with an CORS request from a phonegap app to an django application. What I have so far is the following: - a regular django web project - a phonegap app build on angularJS for some settings. - The idea is, that users can use the app to store relevant s

Re: New data field in models.py "does not exist".

2015-01-12 Thread Florian Schweikert
of syncdb? -- Florian -- 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 em

Re: what's different between {% static %} and {{ STATIC_URL}}

2015-01-08 Thread Florian Schweikert
be used. Also {% static %} works with your 500.html As there is no context accessible if an 500 happen, {{ STATIC_URL }} is not available. -- Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Serving static files (admin panel and others)

2014-12-13 Thread Florian Schweikert
i do? did you follow the howto in the documentation? https://docs.djangoproject.com/en/1.7/howto/static-files/ -- Florian -- 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

Re: Open a url with user and password

2014-12-09 Thread Florian Schweikert
On 2014-12-07 11:48, Hossein Rashnoo wrote: Please help me. this is quite unrelated to django, maybe it would be better asking this question on the python mailinglist[1] -- Florian [1] https://www.python.org/community/lists/ -- You received this message because you are subscribed to the

Re: Redirect not working

2014-12-04 Thread Florian Schweikert
rl in the rendered index.html? if the javascript doesn't try to load the testing url there is something wrong with your js. Maybe $.get is supposed to get a success function as parameter? (wild guessing, I'm not a js guy) and why "redirect not working"? Can't see any redirects

Re: Problem Making New Django project - please help

2014-12-04 Thread Florian Schweikert
.settings not found? Then there is something wrong with the env_variables of your shell. -- Florian -- 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 em

Re: Query set append

2014-12-02 Thread Florian Schweikert
ou may also have a look at the render shortcut: https://docs.djangoproject.com/en/1.7/topics/http/shortcuts/#render -- Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Problem Making New Django project - please help

2014-12-02 Thread Florian Schweikert
use of the problem what command did you run? what was your cwd? what does your project dir structure look like? -- Florian -- 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

nested inclusion tag that takes context

2014-11-28 Thread Florian Auer
Hi folks I have written 2 simple inclusion tags where one is nested inside the other. (settings.html uses the {% version %} tag) Both ones refer to the request object inside the context. The reason for this is, that I have a middleware that sets some flag variables to determine what type of clie

django & gunicorn: KeyError with active log-config setting

2014-11-13 Thread Florian Auer
Hi I wanted to let my gunicorn server to log its config into a dedicated file. Therefore I added an extra line: exec ../bin/gunicorn ${DJANGO_WSGI_MODULE}:application \ --name $NAME \ --workers $NUM_WORKERS \ --user=$USER --group=$GROUP \ --log-level=debug \ --bind=unix:$SOCKFILE \ --log-file=$ERR

Re: transpose values_list result from ORM

2014-10-05 Thread Florian Auer
Ha, I think i got it the result from my databes is a values_list with tupels that cannot be acced via name. I have to use the indizes: for kz in kzlist: data.setdefault(kz[1], {})[kz[0]] = kz[2] Am Sonntag, 5. Oktober 2014 16:07:02 UTC+2 schrieb Florian Auer: > > Hi > >

Re: transpose values_list result from ORM

2014-10-05 Thread Florian Auer
Hi the original variant was claiming a type mismatch: Traceback (most recent call last): File "", line 2, in TypeError: tuple indices must be integers, not str The same with your code example. Maybe the reason is that date is not an integer as it looks like, but a string representation of it?

transpose values_list result from ORM

2014-10-02 Thread Florian Auer
Hi I have a ORM query that results something like this: +-+-+---+ | date | key | value | +-+-+---+ | 201312 | A | 123 | | 201312 | B | 223 | | 201312 | C | 133 | | 201311 | A | 173 | | 201311 | B | 463 | | 201311 | C | 463 | +---

Re: Django 1.6 Nginx with static files outside project folder

2014-09-22 Thread Florian Auer
Hi Yes thats correct, but i checked the static directory in /webapps/sonar3/static and the files for the admin page and the plugin specific files also are present here. But the system tries to load them from /webapps/sonar3/myproject/static. Am Samstag, 20. September 2014 00:55:40 UTC+2 schrieb

Django 1.6 Nginx with static files outside project folder

2014-09-18 Thread Florian Auer
Hello. It seems im stuck in the try to deploy my django project, consisting of multiple apps, to the production server at the point of serving the static files from the preferred directory. system details: - CentOS 6.5 - Django 1.6.4 - green Unicorn python server - Nginx webserver - python 3.3.

Django 1.6.4 debug-toolbar confusing error

2014-05-23 Thread Florian Auer
Hi I am running 2 django 1.6.4 projects, both with debug toolbar enabled. The first one ist a simple project, following the a cookbook tutorial and the toolbar works fine inside. The second project ist the one, I'll wnated to start the real development in. But there every call to the most pane

PyDev 3.4.1 & Django 1.7: undefined variable from Import

2014-05-12 Thread Florian Auer
Hi folks I'am new to django and try to follow the tutorial to digg into the code. I am using eclipse 4.3.SR2 with PyDev 3.4.1 and Django 1.7.b2 (because of the new features) In Tutorial Part 3 (https://docs.djangoproject.com/en/1.7/intro/tutorial03/) the database API is used to get the latest

Re: Weird problem in common_settings include

2012-12-14 Thread florian
On Friday, December 14, 2012 11:17:07 AM UTC+1, ke1g wrote: > > > How are you combining INSTALLED_APPS from the two files? Note that simply > "setting" it to what you want to add in the file that includes the other > *replaces* the value you have imported from the other. Be sure to use += >

Re: Weird problem in common_settings include

2012-12-13 Thread florian iragne
rror any idea? thanks Florian -- 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

Re: Weird problem in common_settings include

2012-12-13 Thread florian
t that i've two different manage.py instead of using --settings option I'll try with the option instead of different manage.py > Use manage.py to open a django shell. Import settings as django would > ("from django.conf import settings"). Is contenttypes in > set

Weird problem in common_settings include

2012-12-13 Thread florian
ng after this error (the settings displayed in the "Request Information" part) show that it is really defined correctly. So, do i use it the wrong way or is this a bug? thanks for your help Florian -- You received this message because you are subscribed to the Google Groups

Re: CachedStaticFilesStorage headache

2012-10-25 Thread florian
ok, just needed to post to find the answer myself! my STATIC_ROOT was "static/" , don't know why i haven't changed it! now, it is os.path.join(ROOT, "static/") and it works perfectly I leave the post in case it would help someone -- You received this message because you are subscribed to the G

CachedStaticFilesStorage headache

2012-10-25 Thread florian
Hi, i try to use CachedStaticFilesStorage and, for now, it only gives me a headache! Whay i've done : 1 - put STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.CachedStaticFilesStorage' in setting 2 - DEBUG = False 3 - add 'staticfiles': { 'BACKEND': 'django.core.cache.back

Re: PicklingError: Can't pickle : it's not the same object as pytz._UTC

2012-06-22 Thread Florian Apolloner
Hi, I've never ran into this and the only way I can reproduce it is: http://bpaste.net/show/29LVTwRDX5DIgUSDE6D9/ -- So my question to you is: What exactly are you doing, how are you deploying, do you have code reloading active somewhere? Cheers, Florian -- You received this message be

Re: Language Translation

2012-03-11 Thread Florian Apolloner
Hi, please post usage questions to django-users. Thx. On Friday, March 9, 2012 4:23:37 PM UTC+1, Vishnu vg wrote: > > Hi Friends, > > I have a cms based existing django site. I want to translate it to german > or other language, Please suggest which is the best method? > > > -- > Regards > > Vi

DatabaseError when running unit tests after upgrade to Django 1.3.1

2011-10-30 Thread Florian Hahn
Hi, upgrading to Django 1.3.1 somehow breaks my unit tests. I'm using django.contrib.gis.db.backends.spatialite as a database engine with two databases; DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.spatialite', 'NAME': 'sqlite.db', 'USER': '',

Re: Pango causing mod_wsgi to crash - Segmentation fault (11)

2011-10-16 Thread Florian Apolloner
Increase debug level and make sure to read the debugging docs on modwsgi.org; then you can hopefully provide more info, so we can actually help. Cheers, Florian P.S.: Btw telling us which versions you use exactly would help too -- You received this message because you are subscribed to the

Re: syncdb for mysql using engine=NDBCLUSTER

2011-10-16 Thread Florian Apolloner
Oh and if you don't want to create all tables in the cluster, just create with the default engine and then switch as needed. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/m

Re: syncdb for mysql using engine=NDBCLUSTER

2011-10-16 Thread Florian Apolloner
Hi, this can be done as documented like for the innodb backend: https://docs.djangoproject.com/en/dev/ref/databases/#creating-your-tables Cheers, Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion

Re: How to solve MultiValueDictKeyError

2011-09-21 Thread Florian Apolloner
Hi, please post in django-users, this mailinglist is about the development of django itself, not about enduser problems. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/

Re: How to I create download link of some file using django

2011-05-26 Thread Florian Apolloner
Hi, file.url is what you are looking for (assuming MEDIA_URL is configured correctly) Cheers, Florian -- 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

Access queryset in get_context_data()?

2011-05-24 Thread Florian Hahn
Hi, is there a way to access queryset from get_context_data without executing the query twice in a class based view? cheers -- 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

using dumpdata on an application with non managed models

2010-06-18 Thread Florian Le Goff
es anyone has a suggestion on how to proceed ? Any solution not involving listing each of the impacted models in --exclude will be welcome. Thanks, -- Florian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Partial ModelForm produces empty var on ManyToMany relationship

2010-04-27 Thread Florian Le Goff
'name') # a call to ItemPartialParent() returns nothing : fields = ('children') I am doing something wrong ? Did anyone run into this already ? Thank you, Florian. -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Cassandra back end for Django

2010-03-04 Thread Florian Leitner
One possible solution: write your own Cassandra "O-non-R-M API" separtely from Django and use the Django DB backend only for less high-volume data - or not at all - and the Django web framework to display the data (i.e., only implement views, forms, etc. in Django). An example of such a layout (not

Re: Apache WSGI DJANGO

2009-10-13 Thread Florian Strzelecki
I think the problem is not in your wsgi file, but in your apache's vhost configuration. You should have this in your vhost configuration, to use your django application with mod_wsgi : WSGIScriptAlias / /var/www/conf/myconf.wsgi So, you should add this line (if your admin/media is url /admin/medi

Re: how to get back to a view requiring login

2009-10-11 Thread Florian Schweikert
initial page, once the user > log in the system. > > > Cheers, Sergio > > > @login_required redirection using ?next=/path (I'm not 100% sure if this is default) your login have to look at this GET var greets, Florian --~--~-~--~~~---~--~---

Authentication Backend: get access to request

2009-09-28 Thread Florian Schweikert
hash and return boolean Somebody has a nice solution for this? thx, Florian --~--~-~--~~~---~--~~ 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@googleg

Re: TemplateSyntaxError: VariableDoesNotExist

2009-09-25 Thread Florian Schweikert
; On Sep 24, 10:14 am, Florian Schweikert > wrote: > > Hello, > > > > {% trans Pagetitle %} produces TemplateSyntaxError when there is no > > Pagetitle given, without translation django ignores it. > > Why i18n can't translate/ignore NoneType? I don't

TemplateSyntaxError: VariableDoesNotExist

2009-09-24 Thread Florian Schweikert
Hello, {% trans Pagetitle %} produces TemplateSyntaxError when there is no Pagetitle given, without translation django ignores it. Why i18n can't translate/ignore NoneType? I don't want to use if around all this varibles. Is there any more confortable way? greeting

Re: verbose_name/i18n sometimes doesn't work in one app

2009-09-23 Thread Florian Schweikert
min.site.register( Publisher, PublisherAdmin ) > admin.site.register( Author, AuthorAdmin ) > [...] > > anybody knows this problem (using 1.0 on lenny)? > is there a django-logfile anywhere? > > greetings, > Florian > Seems to work now, don't know why but it works. g

Re: Django1.1 logs me out after few seconds inactivity

2009-09-13 Thread Florian Schweikert
Maybe it's that old bug: http://blog.umlungu.co.uk/blog/2007/may/20/cookie-problem-django-admin/ Server Upgrade to Lenny is planned in the near future, I hope the problem solves itself with the dist-upgrade. greetz, Florian --~--~-~--~~~---~--~~ You received

Re: Django1.1 logs me out after few seconds inactivity

2009-08-25 Thread Florian Schweikert
Now I'm able to login etc, but only with django-server, with apache also the admin interface informs me that my browser doesn't allow cookies. So there's a problem with apache and/or mod_python. :-/ I'll test this after the planned upgrade to lenny again. --~--~-~--~~~-

Re: Django1.1 logs me out after few seconds inactivity

2009-08-24 Thread Florian Schweikert
Thanks for your patience, I created a new project with only a login-page and a small 'debug' page, seems to work at this stage. Next I will test my own auth_backend, if this problem appears again (I hope not), I'll be able to localise it a bit better. greetings, florian 2009/8/2

Re: Django1.1 logs me out after few seconds inactivity

2009-08-21 Thread Florian Schweikert
Tried to use sqlite, to test if it's a db problem, but django aren't able to open a sqlite databasefile which has the right permissions. Trying postgres next. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: Django1.1 logs me out after few seconds inactivity

2009-08-21 Thread Florian Schweikert
more frustrating for me than the PHP-crap, and that is extreme frustrating (I love Python and it never frustrates me like this). grrreets, florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Django1.1 logs me out after few seconds inactivity

2009-08-21 Thread Florian Schweikert
I wrote a tiny page which just shows the session_key. I can refresh this site and the key is the same, but if I open one of the other pages the request.user.is_authenticated() method opens a new session. :( Nevertheless thanks for your ideas. greets, florian

Re: Django1.1 logs me out after few seconds inactivity

2009-08-21 Thread Florian Schweikert
2009/8/21 Russell Keith-Magee > > On Fri, Aug 21, 2009 at 12:17 AM, Kelvan > wrote: > > > > I've a big problem with user authentification, my application get an > > username and a hashkey to verify if the user is logged in. I wrote a > > function that check this, it worked fine to log in the user

Using COMMENTS_APP setting

2009-06-03 Thread Florian Lindner
%} What is wrong about my way? Thanks, Florian --~--~-~--~~~---~--~~ 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

contrib.comments: blank email

2009-06-01 Thread Florian Lindner
design modifications) complains that the email field is compulsory. Anything still wrong with my setup or do I misunderstand something? Thanks, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: updating dependent page from an iframe

2009-04-23 Thread Florian Strzelecki
I think this is a basic html's problem, and, I'll suppose that you absolutly need an iframe on your site. So, when you make something in an iframe, the another have to be reloaded. With Javascript, or another way... And if you don't want to reload the entire iframe, use Ajax technologie... Hm...

Re: Writing csv files to server

2009-04-23 Thread Florian Strzelecki
Hm... in my opinion this isn't a Django problem, but a conception problem. I think you need a "state" on the invoices : when does it have been paid ? If you know when, so you can filter on the date of paiement. Exemple : Paid (id-1, sales-1, date_paid-2009-03-02, value-$150) Paid (id-1, sales-1,

Re: Pass subdomain to a view function.

2009-04-09 Thread Florian Strzelecki
And what about use the "request" parameter ? Link : http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_host You can use the request.get_host() to know what is the host using, and so make what you want (some split and catch the first part "user1"). 2009/4/9 Rodr

Re: Igoogle integration

2009-04-09 Thread Florian Strzelecki
Hello, I think you could use this : http://docs.djangoproject.com/en/dev/topics/http/urls/#passing-extra-options-to-view-functions You can give some parameters to your view function, defined into the url pattern. So, when it's /mycooldfeed you will write {'template': 'normal_template.tpl'} and whe

Re: mod_python error

2009-04-07 Thread Florian Strzelecki
And... what about that : DocumentRoot: '/usr/local/apache2/htdocs' URI:'/contact.php' Location: '/' Directory: None Filename: '/usr/local/apache2/htdocs/ contact.php' PathInfo: '' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython

Re: select_related and 1-to-many relations

2009-04-07 Thread Florian Strzelecki
Hm... something like that : http://docs.djangoproject.com/en/dev/topics/db/queries/#backwards-related-objects You can reverse a relationship, using "u.*att*_set". --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Beginner's Help needed

2009-04-05 Thread Florian Strzelecki
Yes you can ! *WSGI :* Alias /another /path/to/your/phpApplication WSGIScriptAlias / /path/to/file.wsgi *MOD_PYTHON :* Use Location apache directive. I don't remember what to do for php... sorry, but I know that on this way. 2009/4/5 Dougal Matthews > It depends how you mean combine really.

Re: Best JS Library compatibility for Django

2009-04-05 Thread Florian Strzelecki
Hm... look at this : http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.is_ajax HttpRequest.is_ajax()¶ New in Django 1.0: *Please, see the release notes*

Re: How can I filter query sets in a django template?

2009-04-05 Thread Florian Strzelecki
Did you try to look at Inclusion Tag ? http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#inclusion-tags In template you are not allowed to use some python code... but with an inclusion tag, you will be able to write this : {% load related_conferences %} {% related_conferences scien

Re: Problem with adding new columns to existing model.

2009-04-05 Thread Florian Strzelecki
Hello, Hm... look at this : http://docs.djangoproject.com/en/dev/ref/models/fields/#null http://docs.djangoproject.com/en/dev/ref/models/fields/#blank So, if you want the field "optional_field", write this : class MyClass(models.Model): optional_field = models.CharField('This field is Optio

Re: Changing comments preview form

2009-01-29 Thread Florian Lindner
Am 29.01.2009 um 01:59 schrieb Malcolm Tredinnick: > > On Wed, 2009-01-28 at 19:24 +0100, Florian Lindner wrote: >> >> Am 28.01.2009 um 05:19 schrieb Malcolm Tredinnick: >> >>> >>> On Tue, 2009-01-27 at 20:11 +0100, Florian Lindner wrote: >>

Re: Changing comments preview form

2009-01-28 Thread Florian Lindner
Am 28.01.2009 um 05:19 schrieb Malcolm Tredinnick: > > On Tue, 2009-01-27 at 20:11 +0100, Florian Lindner wrote: >> Hello, >> >> I'm playing around with the contrib.comments framework. I want to >> change the preview form. For that I've copied pre

Changing comments preview form

2009-01-27 Thread Florian Lindner
TE_LOADERS = ( 'django.template.loaders.app_directories.load_template_source', 'django.template.loaders.filesystem.load_template_source', ) But modification I make to the preview.html in my app dir does not seem to be noticed. What's wrong? Thanks, Florian --~--~-~--~~~---~--~

Re: Invalid block tag: "get_comment_count"

2009-01-21 Thread Florian Lindner
Am 20.01.2009 um 21:40 schrieb Florian Lindner: > > > Am 19.01.2009 um 22:58 schrieb Briel: > >> >> You should try playing around with the tags, trying to load comments >> different places trying some of the other comment tags to see what >> happens ect.

Re: Invalid block tag: "get_comment_count"

2009-01-20 Thread Florian Lindner
Am 19.01.2009 um 22:58 schrieb Briel: > > You should try playing around with the tags, trying to load comments > different places trying some of the other comment tags to see what > happens ect. > Also are you using the block tags? what block tags do you have where > have you placed them in rela

  1   2   >