Model similar to a spreadsheet

2008-12-01 Thread Stefan
Hello, I'm new to Django and have some problems on how to create the models. What I want to do is something similar to a spreadsheet, but with more than one data field per intersection. Basically like this: (http://dpaste.com/hold/95128/) Items/Members: Person_A | Person_B | Person_C Item_1: x

Re: Model similar to a spreadsheet

2008-12-02 Thread Stefan
Bruno: Thanks, I think that is exactly what I needed. I thought that I might need a model for the entries (you called them PersonItem), but I wasn't sure since I'm new to this kind of programming and thought there might be a more efficient way. Dan: Just imagine a spreadsheet, like OpenOffice Cal

template_context_processors

2010-05-17 Thread stefan
inside the context_processor function, and I log request.META['REQUEST_URI'] Do you have any idea how to solve this ? Thanks, Stefan -- 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

Re: template_context_processors

2010-05-19 Thread stefan
Hi, I have this issue too :) On May 17, 1:00 pm, stefan wrote: > Hello, > > I have this issue, I am using the development Django version (checked > out from svn). I use a template_context_processor and sometimes the > context_processor is processedtwice, > one for the curre

Debugging Django project using Eclipse (Apache + mod_wsgi)

2010-03-16 Thread Stefan
Hello, When i used Django web-server there were no problems with debugging Django projects in Eclipse IDE. I had to deploy it on Apache web server. How can i debug the same project if it is deployed on Apache with module mod_wsgi? With regards, Stefan -- You received this message because you

Re: Debugging Django project using Eclipse (Apache + mod_wsgi)

2010-03-16 Thread Stefan
Thanks. Good article. On 16 мар, 22:53, dan levine wrote: > this is a good place to get started: > > http://code.google.com/p/modwsgi/wiki/DebuggingTechniques > > On Mar 16, 10:11 am, Stefan wrote: > > > > > Hello, > > > When i used Django web-serve

Django saving problem, logging in/out fixes it

2011-01-18 Thread Stefan
). The software we're using is Apache, Nginx, Django 1.0 and Postgresql. Also note that it does work when run with runserver, but not with nginx. This only occurs with this user with the proxy, everywhere else, it does work. Anyone experienced this before? If so, how'd you solve it? Th

Django session gets confused behind proxy, already logged in

2011-01-31 Thread Stefan
t does work when ran with runserver, but not with nginx. This only occurs with this user with the proxy, on other networks, it does work. Anyone experienced this before? If so, how'd you solve it? Thanks in advance! Stefan -- You received this message because you are subscribed to the Google Gr

Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread Stefan Wallner
the file upload. Of course this means once a file was uploaded and the notification is displayed any refresh of the will give you a browser warning about resending data which I would like to avoid. Any suggestions? Thanks Stefan --~--~-~--~~~---~--~~ You

mod_wsgi // Stack trace does not show in log files or gets sent by email

2008-12-13 Thread Stefan Wallner
should do? Thanks, Stefan --~--~-~--~~~---~--~~ 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 em

Re: two forms in the same view

2008-12-18 Thread Stefan Tunsch
You simply have to avoid using the same field name in the two forms. On 12/18/08, Alfredo Alessandrini wrote: > > Hi, > > can I use two form in the same view function? > > if request.method == 'POST': > form = FORM_1(request.POST) > if form.is_valid(): >.

Re: mod_wsgi // Stack trace does not show in log files or gets sent by email

2008-12-20 Thread Stefan Wallner
ection so I can poke around some more in the right place for what's going on. Thanks! Stefan On Dec 14, 5:50 am, Stefan Wallner wrote: > Hi, > I am running Django 1.0 on Windows Server 2003, Python 2.5 with > mod_wsgi. I am having trouble capturing any exceptions in my code > ei

Problems with locale of dates queryset

2009-01-07 Thread Stefan Tunsch
x27;) import locale locale.setlocale(locale.LC_TIME, "sp") months = [m.strftime('%B') for m in premonths] But I guess I'm missing something here... BTW, the problem of the wrong locale of dates is everywhere I use dates on my site, not only in this snippet. Regard

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Stefan Tunsch
What's the point of using Apache AND nginx? The same server is also handling the database? What db server are you using? What about caching? Have you something up and running in that sense? And regarding video conversion, this can obviously be the root of your problems. Can you be more specifi

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-10 Thread Stefan Tunsch
It looks like it's clear video conversion is your bottleneck. I would also suggest doing that on a different worker process. You will also want to avoid converting the same file again if you've done it before... I was suggesting to give a shot of using ONLY nginx with Django. If you search in G

Re: First page access from another box, not 127.0.0.1

2009-01-12 Thread Stefan Tunsch
Take a look at http://docs.djangoproject.com/en/dev/ref/django-admin/#runserver-optional-port-number-or-ipaddr-port Regards, Stefan moiseyo escribió: > I'm new with Django , and I'm follow the tutorial. > > I have install Django on my Linux box , and use My Windows box

a simple API to SproutCore

2008-10-02 Thread Stefan Foulis
/django-sproutcore/ There is a short tutorial in the wiki. I'm looking forward to feedback. Please post bug reports and feature requests to the google code site. I hope you enjoy the app. --Stefan Foulis --~--~-~--~~~---~--~~ You received this message because yo

Dynamically changing q object

2009-01-26 Thread Stefan Tunsch
) | Q(src__contains=company.fax) ) If a company has a None value in one of these fields, I get a "Cannot use None as a query value" error. I would want to add Q objects dynamically depending on the situation. Is this possible? Regar

Re: Dynamically changing q object

2009-01-26 Thread Stefan Tunsch
This works excellent. Had now idea this was possible... Regards, Stefan Tim Chase escribió: I have a qset object like this: qset = ( Q(dst__contains=company.phone) | Q(dst__contains=company.cellphone) | Q(dst__contains=company.fax

Complex queries with datetime field

2009-01-28 Thread Stefan Tunsch
: myfinaldate.day}) First I would want to know if there is a better way to lookup data that is IN a range of data? Second I would want to know if I can somehow add to my Q object a mix of groups of ANDed values that are ORed between them? I hope this makes sense to somebody, Stefan ;) P

Re: Complex queries with datetime field

2009-01-29 Thread Stefan Tunsch
nth) & Q(mydatetimefield__year=myfinaldate.year) myqueryset = myqueryset.filter(qdates) Regards, Stefan Malcolm Tredinnick escribió: On Wed, 2009-01-28 at 16:10 +0100, Stefan Tunsch wrote: Hi! I have a calendar that permits multiple selections of dates. My view has to filter the

Re: Complex queries with datetime field

2009-01-30 Thread Stefan Tunsch
Hi Malcolm! Well, as you say, the range lookup simplifies the code. I am using MySQL and adding a timedelta of 1 day to a date object and comparing the range with my datetime field works indeed as expected. Thanks for your help. It's been very instructive. ;) Regads, Stefan Ma

Error with File object

2009-02-12 Thread Stefan Tunsch
]) #My file has the ID of the ticket in the files name t = TicketDocument(doc=File(f), company=company, ticket=tic) t.save() # This step throws the TypeError I'm using trunk at 9826 (just updated) Any ideas would be appreciated. Regards, Stefan --~--~-~--~~

[Fwd: Error with File object]

2009-02-12 Thread Stefan Tunsch
I think I found a bug in the trunk. I downgraded to rev 9700 and it started to work again. Regards, Stefan Mensaje original Asunto: Error with File object Fecha: Thu, 12 Feb 2009 15:23:29 +0100 De

Re: [Fwd: Error with File object]

2009-02-13 Thread Stefan Tunsch
Thanks Karen. Karen Tracey escribió: On Thu, Feb 12, 2009 at 9:55 AM, Stefan Tunsch <stun...@gmail.com> wrote: I think I found a bug in the trunk. I downgraded to rev 9700 and it started to work again. Regards, Stefan I opened a ticket to track this:

Struggling with annotations / aggregations

2009-02-18 Thread Stefan Tunsch
mfortable with this approach since I seem to be completely overriding django's ORM) The last option would be to add some extra SQL to my QuerySet through the extra parameter. Any insight would be appreciated. Regards, Stefan --~--~-~--~~~---~--~~ You rec

Re: Getting Django to generate a report automatically on a assigned date?

2009-02-18 Thread Stefan Tunsch
use the django ORM as usual. Regards, Stefan Alfonso escribió: > Hi, > > I have a client who wants to generate an invoice statment > automatically on the first of every month. I'm trying to work out how > I might do that in Django. I have a simple statement model and a > s

Re: Struggling with annotations / aggregations

2009-02-19 Thread Stefan Tunsch
Thanks for the answer. I understand the implications of it. I'll keep an eye on the stated ticket. Keep up with the good work. Stefan Russell Keith-Magee escribió: On Thu, Feb 19, 2009 at 2:32 AM, Stefan Tunsch wrote: Hi there! I'm trying to see what's the b

Docstring documentation

2009-02-26 Thread Stefan Tunsch
iew in order to use it in my context... Regards, Stefan --~--~-~--~~~---~--~~ 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 unsubscr

Problem with formsets and uploading of files

2009-03-17 Thread Stefan Tunsch
correct for cd in attachmentset.cleaned_data: print cd #Returns 3 empty dictionary {} Any help will be appreciated. Regards, Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: OR in query_set

2009-07-21 Thread Stefan Hjelm
Many thanks! --~--~-~--~~~---~--~~ 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+unsubsc

Re: model upload_to

2009-08-04 Thread Stefan Hjelm
t; > > This gives: > > Exception Type:         NameError > > Exception Value:        global name 'the_file' is not defined > > > Also tried with slug fields and setting a function and set value in > > runtime with: > > the_file = models.FileField(uploa

Re: model upload_to

2009-08-04 Thread Stefan Hjelm
sorry, my last post was answer to the first reply :-) I'll the second now. Thanks. On 4 Aug, 22:08, Stefan Hjelm wrote: > thanks, forgot to say I tried that aswell but then nothing happens. > It's just as it ignores that line. It still saves the file under > "folder&qu

Re: model upload_to

2009-08-04 Thread Stefan Hjelm
in > > runtime with: > > the_file = models.FileField(upload_to=get_path) > > > that works great if I just want to change the filename but I can't > > change folder. > > > So what am I doing wrong? > > > Stefan > > Alex has given you the an

Test client - session data is empty and won't save new entries

2009-04-27 Thread Stefan Wallner
ile' SESSION_FILE_PATH = '/var/tmp' ... This is on Django 1.0. (haven't gotten around to upgrade to 1.0.2 yet, but at least the release notes wouldn't indicate any problems in this direction.) I am sure I am missing something obvious, but haven't been able to figu

Re: Test client - session data is empty and won't save new entries

2009-04-28 Thread Stefan Wallner
make it work, but I don't understand why the file CACHE_BACKEND wouldn't work? The docs don't seems to warn about that either. Anyone can explain? Stefan On Apr 27, 9:47 pm, Stefan Wallner wrote: > Hi, > I am writing some tests for an application I am developing,

Problem with loading fixture in testcase

2009-05-22 Thread Stefan Tunsch
tabase, at least to some extent. How can I track down the error? Or can it be a bug in the deserializer code... Regards, Stefan Tunsch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Problem with performance on a django site

2009-05-28 Thread Stefan Tunsch
arted to cache, (currently via the in-memory cache option, to keep it simple). The approach is to use the "cache" template tag to cache portions of my templates which don't need to be refreshed on each request and which do require calls to the database

Seeking contributors for TODO list project written in Python/Django/jQuery ( open source )

2009-09-15 Thread Stefan Petrea
Hello, My name is Stefan Petrea and I'm working on a project built using Django. Basically the idea, is that of many wishlist-type of sites out there (of which a representative site is tadalist.com). What you can do is make lists of items , make items , edit them , re-order them(using j

Re: F() expression order of operations

2009-09-15 Thread Stefan Petrea
What are F() expressions and where are they documented ? (just didn't hear the term until now) About your win_percentage column , wouldn't you rather have it as a method which is being calculated from the columns wins and losses instead of a column stored inside the table ? On Sep 15, 8:36 pm, B

Call for discussion: Loading js assets of widgets without clashing with others?

2010-04-18 Thread Stefan Foulis
re modified to load into that namespace... no clashes and allows multiple versions of jQuery. Potentially bad for memory usage and performance. What do you guys think? What approach would you prefer? Other ideas? -- Stefan -- You received this message because you are subscribed to the Google

Re: How do I update a global variable?

2010-06-18 Thread Stefan Frauenknecht
Please rethink your design! There is certainly no need for a global variable. There is may be a way to implement your requirement as a singleton that is being able to deliver the huge bag of data in a much more smarter way. Am 18.06.2010 um 20:17 schrieb aurphir : In my django application

Re: Multi-table Inheritance: How to add child to parent model?

2010-11-07 Thread Stefan Foulis
As far as I know there is no existing api to convert a 'Place' into a 'Restaurant' with multi-table inheritance in django. There is a ticket about this [1]. And in another ticket [2] that is marked as a duplicate but seems to have an example of how to solve this problem until there is a standard ap

Models, forms and inlineformset

2010-01-04 Thread Stefan Nitsche
d it correctly when using inlineformset_factory I must give it an instance so that it can map the foreignkey, correct? So how do one go about and create a form where people can add "item" and "itemimages" at the same time? I'm feeling totaly lost any pointers would be greatly appreciat

Re: Models, forms and inlineformset

2010-01-23 Thread Stefan Nitsche
On Mon, Jan 4, 2010 at 23:27, Stefan Nitsche wrote: > Hi, > > to begin with I would like to declare that I'm still on the beginner end of > the scale when it comes to Python and Django. > > I have an app which has two models: > > class Item(models.Model): &

Re: Models, forms and inlineformset

2010-01-27 Thread Stefan Nitsche
Exception Type: MultiValueDictKeyError >Exception Value: > >Key 'activity_set-0-id' not found in {u'activity_set-0-name': [u'a\xf6lskjdf\xf6sa'], u'activity_set-0-type': > [u'research'] > > on save... any hints? &

Re: Models, forms and inlineformset

2010-01-29 Thread Stefan Nitsche
On Thu, Jan 28, 2010 at 10:15, andreas schmid wrote: > and your form works on edit too? > i really cant understand why mine isnt... > > its giving me this MultiValueDictKeyError which i dont understand. > > Stefan Nitsche wrote: > > On Wed, Jan 27, 2010

Re: Models, forms and inlineformset

2010-01-30 Thread Stefan Nitsche
On Sat, Jan 30, 2010 at 11:23, andreas schmid wrote: > Stefan Nitsche wrote: > > > > > > On Thu, Jan 28, 2010 at 10:15, andreas schmid > <mailto:a.schmi...@gmail.com>> wrote: > > > > and your form works on edit too? > > i really cant un

Bound forms and file-/imagefields

2010-01-30 Thread Stefan Nitsche
ing some troubles putting this into words (the fact that English isn't my primary language doesn't help). If I'm unclear please don't hesitate to ask for clarification. -- Stefan Nitsche ste...@nitsche.se -- You received this message because you are subscribed to t

Re: auth issue on Windows

2010-03-02 Thread Stefan Berglund
I have tried Firefox 3.6 and Internet Explorer 8, same thing in both. And it's Python 2.5.4. And I use manage.py runserver against localhost so the hostname is the same before and after login (http://localhost/...). After login, I redirect to "/indexview/" like this; [...] return HttpResponseRed

Re: alternative to model inheritance?

2007-09-03 Thread Stefan Rimaila
jango, IIRC, isn't yet capable of doing what you've described below. -- Stefan Rimaila "A few bolts loose and a set of switches broken" Blog, personal portfolio & fun stuff: http://www.studionyami.com On Mon, 3 Sep 2007, Doug wrote: > > I m creating new models for a por

help_text not showing for ForeignKey with models.TABULAR

2008-02-03 Thread Stefan Wallner
min the use_for field shows up fine except for the help text (it's missing). If I change edit_inline to models.STACKED, the help_text does show. Any way to show the help_text with the models.TABULAR layout? Thanks Stefan PS: I am running svn, revision: 7079 (updated today) --~--~

oracle backend doesn't cache connections

2007-09-19 Thread Stefan Bethge
r now in django, http://code.djangoproject.com/ticket/409). Are there plans to implement some kind of connection caching or may I have not seen a connection pool daemon for oracle? Or is it in some way possible to manage the connections in the django application itself? Thanks for any suggestion

Re: oracle backend doesn't cache connections

2007-10-02 Thread Stefan Bethge
Hi again, I've found out recently that there is Oracle Connection Manager which might just be what I need. I still need to test it though. Later, Stefan On Sep 19, 2:26 pm, Stefan Bethge <[EMAIL PROTECTED]> wrote: > Hello, > > i've recently found out that django does

Re: Django - Oracle support

2007-10-15 Thread Stefan Bethge
ves for it. Cheers, Stefan On Oct 15, 6:03 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 10/15/07, AP <[EMAIL PROTECTED]> wrote: > > > Before I am able to finalize my decision, I just wanted to be sure > > about this point. So, does Django really suppo

syncdb doesn't handle blank=True correctly?

2006-11-15 Thread Stefan Foulis
complains as soon as django tries to save to the db. Is this a known issue? Or is something bogus with my installation? (I tried this with postgres and sqlite and had this problem with Integer-, String- and ForeignKey-Fields. Manually changing the fields in the db solved the problem.) thanks stefan

dividing up views.py into multiple files

2007-01-10 Thread Stefan Foulis
up the view into multiple files? Is this also possible with models? thanks for any hints - stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: dividing up views.py into multiple files

2007-01-10 Thread Stefan Foulis
thanks for the reply... adding the empty __init__.py file worked. I like Rubics idea aswell. Importing extra utilities could prove very flexible. thanks again :) -- stefan On Jan 10, 2007, at 15:54, Nathan R. Yergler wrote: > > Did you add a file named __init__.py to the views dir

Re: What svn (subversion) client do you use for OS X?

2007-01-11 Thread Stefan Foulis
I use eclipse with subclipse for svn and pydev for python support... everything nicely integrated and in one place. On Jan 11, 2007, at 06:57, Noah wrote: > > I recently switched to a mac and I've been keeping all of my projects > in subversion and I don't have a good GUI client. What do you >

Re: Show fields from foreign keys in Django admin

2007-01-16 Thread Stefan Foulis
I'm using Django's admin interface to view the fields of a table. One of these fields in a foreign key reference to another table named "Search". By default, Django's admin interface shows me "[Search Object]" in the foreign key column. I'd prefer to see some identifying information about the Se

Re: Project organization and decoupling

2007-01-16 Thread Stefan Foulis
On Jan 16, 2007, at 17:52, David Abrahams wrote: For me, Django doesn't seem to be delivering on its promise to allow me to build a collection of apps and organize them in different combinations into multiple Django projects, and the documentation I can find doesn't really give any clues abou

Announcing django user group switzerland

2012-09-17 Thread Stefan Foulis
over our meetup.com page ( http://www.meetup.com/Django-User-Group-Switzerland/). Cheers* * Stefan Foulis* -- 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/dj

Django Form with initial DateTime Value is recognized as changed

2012-09-26 Thread Stefan Winkler
class Test(models.Model): datum = models.DateTimeField() text = models.CharField(max_length=255) class TestForm(ModelForm): class Meta: model = Test Rendering the form with form = TestForm(initial={'datum':datetime.datetime(2012, 8, 21, 18, 0, tzinfo=)) looks all good. Djang

django/utils/html.py fix to work with jython/java

2012-10-07 Thread Stefan Hummert
http://code.google.com/p/django-jython/issues/detail?id=78 I am not sure where this fix suits best (django or django-jython project), so I'll just ask... at the Link above all fix details are posted (if someone care's to integrate them feel free...) -- You received this message because you are

Re: Announcing django user group switzerland

2012-10-18 Thread Stefan Foulis
Join the first «Django User Group Switzerland Meetup» on Thurs, 25.10.2012! We still need speakers - could it be you? http://goo.gl/A04hM On Tuesday, September 18, 2012 3:12:31 AM UTC+2, Stefan Foulis wrote: > > *Dear Djangonauts > > After the positive experiences at djangocon 20

Re: Announcing django user group switzerland

2012-10-28 Thread Stefan Foulis
ictures at http://goo.gl/ULrCz . Cheers Stefan On Tuesday, September 18, 2012 3:12:31 AM UTC+2, Stefan Foulis wrote: > > *Dear Djangonauts > > After the positive experiences at djangocon 2012 in Zürich, we’d like to > further strengthen the swiss django user community and therefore i

Django Standalone Template

2011-10-28 Thread Stefan Lisowski
Hi Django folks - I'm new to Django, and I just want to use the template system now, independent of the rest of Django. But I can't get it to see a template. Even the system templates as was suggested when I started Googling for my error. >>> import django.template >>> django.conf.settings.config

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
ate raise TemplateDoesNotExist(name) django.template.base.TemplateDoesNotExist: admin/base.html (I also tried without manually setting TEMPLATE_DIRS, but just ran django.conf.settings.configure(), still to no avail.) Anyone, any ideas? I'm completely new to Django, but I've not be

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
\loader.py", line 157, in get_template template, origin = find_template(template_name) File "c:\Python26\lib\site-packages\django\template\loader.py", line 138, in find_template raise TemplateDoesNotExist(name) django.template.base.TemplateDoesNotExist: admin/base.

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
o use each letter of your setting as a directory, I believe. I assumed a single directory could be a case of a single element. Tuple lesson duly noted. I take it you're not using the app directories loader? Not yet. - Stefan On Mon, Oct 31, 2011 at 3:58 PM, Stefan Lisowski wrote: On 10/

DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
ttings-without-setting-django-settings-module) says that this should work, I always get the error: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. Anyone who can help with this? Cheers, Stefan -- You received this message because y

Re: DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
ARRGH, sorry for the spam. The problem was that I have imported other django modules before calling execute_from_commandline... Cheers, Stefan On Saturday, December 1, 2012 5:57:31 PM UTC+1, Stefan Schwarzburg wrote: > > Hi, > > I'm looking for help with the following prob

Re: How install Django in PyCharm Community edition?

2017-02-10 Thread Stefan Milutinovic
You can't install django in PyCharm. You must set proper Python interpreter into PyCharm Settings. File>Settings>Project:name_of_your_project>Project Interpreter There you must setup proper Python interpreter. The best option is that you create Virtual Environment for each project. This is guide

Serializer for Postgis Array field in Django

2017-02-11 Thread Stefan Milutinovic
Hi, I have a class BPS: class BPS(models.Model): """ This is representation of UK BPS applications. """ ... questions = ArrayField(models.IntegerField()) This field questions is ArrayField od integers. And I also have Serializer for BPS. When I want to create BPS objec

post_delete and determining if a related object has been deleted

2015-07-28 Thread Stefan Schindler
jects really have to be gone in order for the operations to work. I can see that the behavior has changed 8 years ago: https://code.djangoproject.com/ticket/5559 Is there any other option I'm missing? Many greetings, Stefan Schindler -- You received this message because you are subscribed to the G

Re: post_delete and determining if a related object has been deleted

2015-07-28 Thread Stefan Schindler
of the failing transaction, which I can't handle myself anymore. I'm really out of ideas. Stefan -- 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

Ideas for easier migration from South to Django 1.7+

2016-02-12 Thread Stefan Foulis
it really easy to create a pull request to the app's GitHub repo to add any mappings developers come up with while migrating projects. We at Divio and Aldryn would be happy to kickstart and maintain such an app for the benefit of the wider community. I'm especially interested if a

AnonymousUser.is_authenticated woes

2018-10-11 Thread Stefan Bethke
None of that seems right. Have I somehow managed to get something else pulled in? In the actual application, not-logged in users see the right stuff, so apparently there it's working. Stefan -- Stefan BethkeFon +49 151 14070811 -- You received this message because you are subs

Re: AnonymousUser.is_authenticated woes

2018-10-11 Thread Stefan Bethke
Am 11.10.2018 um 18:44 schrieb Stefan Bethke mailto:s...@lassitu.de>>: >>>> from django.contrib.auth.models import AnonymousUser >>>> AnonymousUser.is_authenticated > The answer is of course to use an instance, not the class: >>> from django.cont

Re: Problems with code in shell (Django 2 and python 3.6)

2018-10-12 Thread Stefan Bethke
attribute 'timedelta' > >>> > > Any idea? Thanks a lot. You're missing an additional datetime. Either: >>> from datetime import datetime or >>> future_question = Question(pub_date=timezone.now() + >>> datetime.datetime.timedelta

Reject a Websocket connection with a code.

2020-09-17 Thread Stefan Cardnell
Hi guys, please read my Stackoverflow question: https://stackoverflow.com/questions/63862762/django-channels-correct-way-to-reject-an-unauthorized-websocket-request I'm having an issue rejecting a websocket connection and have the client receive the associated code (unauthorized, bad page, red

How to use the PostGIS aggregate function ST_AsMVT with Django ORM

2021-02-25 Thread Stefan Brand
Hello everyone, this is a repost of https://stackoverflow.com/questions/65508291/how-to-use-the-postgis-aggregate-function-st-asmvt-with-django-orm (click for nice formatting). I'm providing the problem description below as well. Thank you, for your kind consideration! Best, S

Re: Form does not import current data from data base

2023-10-25 Thread Stefan Kusmierz
Hi Migui, I'm enchanted to receive such a quick answer. 1. It's MyForm1_2_3_4() because it's the answer to the first Get request while the page is opened 2. Why would I try to save the form to the data base? Best regards, Stefan Migui Galan schrieb am Mittwoch, 25. Oktober 2023

Re: Form does not import current data from data base

2023-10-26 Thread Stefan Kusmierz
Hi Migui, thanks for your input. It didn't work. Migui Galan schrieb am Donnerstag, 26. Oktober 2023 um 09:27:48 UTC+2: > Hi Stefan, sorry i thought the process you are working is in POST request. > Try to place your func() after formchoices3. > > On Wed, Oct 25, 2023

Re: Form does not import current data from data base

2023-11-13 Thread Stefan Kusmierz
Dear community, I'd like to inform you how I overcame the problem: instead of using "List.objects.last().a" to access field "a" of the last instance of class List, I did it like so: m=List.objects.last().pk List.objects.get(pk=m).a Best regards, Stefan Kani Sbt schrieb a

4 beginner's questions

2007-07-19 Thread Stefan Matthias Aust
file. ... Wait, I think, _save_FIELD_file() will eventually save the file and yes, that while loop is obviously not threadsafe! So I need to set the filename myself. But how? -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because yo

Debugging file uploads

2007-07-19 Thread Stefan Matthias Aust
place :) What I know about Python so far, this should be possible, shouldn't it? If you can load and display the source code, you must be able to save a modified version to the same location... And, well, syntax coloring would be nice... no just kidding... -- Stefan Mat

Re: Blog engine

2007-07-19 Thread Stefan Matthias Aust
easy it was to create something. Just telling them isn't enough :) Stefan --~--~-~--~~~---~--~~ 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@goog

Re: 4 beginner's questions

2007-07-19 Thread Stefan Matthias Aust
4 Oh, it's not creating the ID, my question was whether I can safely assume that I will always get an IntegrityError (and nothing else) and whether just inserting stuff and catching errors is the recommended Pythonic way. -- Stefan Matthias Aust // Truth until paradox --~--~-~--

Re: Blog engine

2007-07-19 Thread Stefan Matthias Aust
write their own custom blogging solution because it's so easy? I guess not :) -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
ick names must be different. This is want I call a random ID. -- Stefan Matthias Aust --~--~-~--~~~---~--~~ 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@googlegro

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
2007/7/21, Nis Jørgensen <[EMAIL PROTECTED]>: > > Stefan Matthias Aust skrev: > > > > Let's assume you have users who are allowed to assign nick names to > > theirselves and still all thoses nick names must be different. This is > > want I call a random

Re: Debugging file uploads

2007-07-21 Thread Stefan Matthias Aust
py" file. A simple view method will simply spawn a new editor. Because I don't really know what to return from that view, it will work best with a bit of Ajax. -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are su

Storing binary data into a table

2007-07-21 Thread Stefan Matthias Aust
cannot use that. Additional question: Is there a way to store serialized (a.k.a. pickled) Python objects? Thanks, -- Stefan Matthias Aust --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
d dictionaries, that is mutable sequences. At the same time, I like how Django expresses relations between objects and automatically manages them. So I tried to come up with some custom relation class - and failed so far ;( -- Stefan Matthias Aust --~--~-~--~~~---~-

Re: 4 beginner's questions

2007-07-21 Thread Stefan Matthias Aust
2007/7/21, Tim Chase <[EMAIL PROTECTED]>: > I believe you're looking for the word "arbitrary". Yes. Thanks. Geeks should however take into consideration that a "random access file" isn't called an "arbitra

Re: How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
y @transaction.commit_manually def test(foo): foo.count += 1 transaction.rollback() class Test(unittest.TestCase): def test_transactions(self): foo = Foo(count=1) test(foo) self.assertEqual(1, foo.count) The above code will fail. The count isn't reset to 1. It doe

Re: Using the enumerate() function in a loop?

2007-07-21 Thread Stefan Matthias Aust
Greg, 2007/7/22, Greg <[EMAIL PROTECTED]>: > Does anybody know how I can get the list position so I can put it in > the url? Search for "forloop.counter0" on http://www.djangoproject.com/documentation/templates/#for --

How to pick a template based on the request object?

2007-07-26 Thread Stefan Matthias Aust
ric solution that requires no code changes in contributed modules? -- Stefan Matthias Aust // Truth until paradox --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: ifequal not working?

2007-07-28 Thread Stefan Matthias Aust
arguments. They must be variables, numbers or constants in quotes. To special case the last element of a list, do this: {% for item in items %} {% if forloop.last %} class="last" {% endif %} ... {% endfor %} -- Stefan Matthias Aust --~--~-~--~~~---~--

  1   2   >