How to let users to block private messages in Django-postman?

2016-02-11 Thread Lukas B.
Hi all, I have instlled django-postman but it works great. However I'd like to allow users to opt for not receiving any private messages. I'm wondering how the easiest way to do so? I've looked at the docs but could not find

Re: IntegrityError

2014-03-28 Thread Lukas Nemec
syncdb Lukas On 03/28/2014 03:24 PM, Warren Jacobus wrote: Hi, I've been trying to create a simple flight booking system but seem to have trouble. When trying to create a Flight object it says that aircraft_id may not be null and when trying to set a Passenger object it says flight_id ma

Re: supervisor

2013-10-21 Thread Lukas Nemec
r dev code separated from production, so you don't change it that often that it would bother you to reload it :) Lukas -- 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: supervisor

2013-10-21 Thread Lukas Nemec
On 10/21/2013 02:35 PM, Diogene Laerce wrote: Hi, Anyone could share a good process control system software name to use with uwsgi ? Apart from supervisor, I couldn't make it work : - can't stop it only kill it - bug on supervisorctl reload.. Even when using the last version. Thank you Hi, I

Re: deploy ?

2013-10-11 Thread Lukas Nemec
Why do you want apache? It is not as good as say Nginx with UWSGI or gunicorn... And there is a lot of information about this. .. http://nemec.lu/en/how-to#django-nginx-uwsgi-ssl enjoy On 10/11/2013 05:40 PM, Diogene Laerce wrote: Actually the default django server works but I can't get apache

Re: Can't run manage.py runserver (Django 1.5.1)

2013-08-06 Thread Lukas Nemec
27;ll understand .. Lukas On 08/06/2013 03:20 PM, pa xapy wrote: try to use linux. running python on win is suffering -- 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, se

Re: Graph in django

2013-08-06 Thread Lukas Nemec
know how to do any of these things, I'd suggest you to read django tutorial and then ask us a more specific question. Enjoy! Lukas On 08/06/2013 07:30 AM, amanjot kaur wrote: I am plotting a graph in django using matplotlib. I am entering all the values manually but I want to fetch the v

Re: HttpResponse Video

2013-08-06 Thread Lukas Nemec
Well, this may not be the best idea On a production server, you'd make it differently Sure, you could do it this way, but Django should serve dynamic context, so unless you are rendering images on your machine, you should use Nginx, or apache to serve your images, aka. staticfiles/media you'd

Re: Django for corporate web site

2013-08-06 Thread Lukas Nemec
Exactly, tell us what is required on the page.. If it is a simple informational website, with some content, you can either use django's staticpages, or some CMS few examples: https://www.django-cms.org/ https://github.com/lunemec/django-pages # I use this to run my own website On 08/06/201

Re: multiple templates fro single view

2013-08-01 Thread Lukas Nemec
On 08/01/2013 03:04 PM, Harjot Mann wrote: On Thu, Aug 1, 2013 at 6:10 PM, Lukas Nemec wrote: Well, after some consideration, result of a view is rendered HTML page which you send to browser, what do you mean by rendering multiple templates? are you talking about template inheritance = one

Re: How to display Chinese in django webpage

2013-08-01 Thread Lukas Nemec
Hi I'd suggest you to contact the developers of Zinnia blog, they should be able to help you easily Cheers :) Lukas On 08/01/2013 10:50 AM, zhao yan wrote: HELLO: I am a new django user I want to display Chinese in my webpage but it can't this is my s

Re: multiple templates fro single view

2013-08-01 Thread Lukas Nemec
27; %} tag, or are you talking about splitting your big template into a few smaller? in that cas, use {% include 'page.html' %} tag for more information look here: https://docs.djangoproject.com/en/dev/topics/templates/ Enjoy! Lukas On 08/01/2013 01:14 PM, Harjot Mann wrote: In my p

(Noob) - filtering spanning relationship not working

2013-07-22 Thread Lukas Kawerau
I want to find the number of articles for which a specific user has created articlehistoryrecords. The models for that look like this: class Article(models.Model): """The basic entity of this app.)""" documentID = models.CharField(blank=True, max_length=1000) cowcode = models.Intege

Re: showing the checked item alone in template

2013-07-17 Thread Lukas Nemec
I meant like this: views.py: form = PersonActionsForm() actions = form.fields['actions'] # set checked_choice to None checked_choice = None for choice in actions.choices: # if choice.selected (confirm this against request.POST) checked_choice = choice return render_to_response(

Re: new user having trouble displaying images stored on local disk drive

2013-07-16 Thread Lukas Nemec
to /static/, you will not see anything, it will not list the files, you need to specify exact name of the file. Django help: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/ If this didn't help, try stackowerflow Lukas On 07/16/2013 07:09 PM, evh wrote: Working in a Windows envi

Re: django template prints

2013-07-16 Thread Lukas Nemec
# this just prints it to stdout If you want to make some printing app, I suggest creating simple template with only the data you want printed, and create some view for it that would do something like I've written above and just print it from browser ... easiest way Lukas On 07/17/20

Re: save data from html table

2013-07-16 Thread Lukas Nemec
w if it would work.. I'm sorry but I don't have enough information to tell you more ... On 07/16/2013 03:07 PM, Randa Hisham wrote: my problem not to save to database but is how to get data from template On Tue, Jul 16, 2013 at 3:03 PM, Lukas Nemec <mailto:lu.ne...@gmail.com>&

Re: save data from html table

2013-07-16 Thread Lukas Nemec
That depends, you could use django.db models to access that table, but that depends on the table - there is a ton of information on this subject here: https://docs.djangoproject.com/en/dev/topics/db/models/ Or, you could write a custom SQL that would fetch exactly the data you want, and save

Re: Python 2.7 + Django 1.4 + apache 2.4

2013-07-16 Thread Lukas Nemec
Take a look here: https://nemec.lu/en/how-to/~django-nginx-uwsgi-ssl It is not apache, but nginx + uwsgi app + django wsgi.py is generated automatically by manage.py startproject example is here: https://github.com/lunemec/wysiwyg/blob/master/wysiwyg/wsgi.py Note: this is the app that runs un

Re: 'too many SQL variables' error with ModelMultipleChoiceField

2012-04-23 Thread Lukas Zilka
Will the change in Django code that I propose have any bad consequences or do you think it might actually work satisfactorily? Thanks. Best, Lukas On Apr 23, 12:56 am, Russell Keith-Magee wrote: > Hi Lukas, > > I haven't looked into the problem in detail, but it doesn't

Re: 'too many SQL variables' error with ModelMultipleChoiceField

2012-04-23 Thread Lukas Zilka
going to break anything? Best, Lukas On Monday, April 23, 2012 10:58:19 AM UTC+2, akaariai wrote: > > On Monday, April 23, 2012 1:56:19 AM UTC+3, Russell Keith-Magee wrote: >> >> It's also probable that it's something that is new to 1.4 (or, at least, >> that it m

'too many SQL variables' error with ModelMultipleChoiceField

2012-04-22 Thread Lukas Zilka
Hello, I have a form with ModelMultipleChoiceField on it, and I am getting 'DatabaseError: too many SQL variables' (using SQLite) when the user picks more than 1000 entries in the selection widget and posts the form. The problem seems to be the method clean of ModelMultipleChoiceField, which trie

Re: Django Forms and Twitter Bootstrap - Add fieldset, div wrapper and CSS labels to Django Forms?

2011-12-12 Thread Lukas Vinclav
endif %} {% endfor %} 3. In template file where you are displaying form just call form.html {% block content %} {% csrf_token %} {% include 'backend/partials/form.html' with form=question_form %} {% end

Re: Viewing uploaded files via the admin interface

2009-12-09 Thread Lukas
Yay, big thanks. It works now. On 9 Dez., 07:30, Karen Tracey wrote: > On Tue, Dec 8, 2009 at 4:42 PM, Lukas wrote: > > Hi everyone, > > > i've a problem viewing uploaded files via the admin interface. When I > > try to view the file, everything I get is a Valu

Viewing uploaded files via the admin interface

2009-12-08 Thread Lukas
Hi everyone, i've a problem viewing uploaded files via the admin interface. When I try to view the file, everything I get is a ValueError exception: invalid literal for int() with base 10... I know it goes wrong, when your MEDIA_URL is not set correctly. The link to the file in the admin interfac

Re: Password Field Form

2008-11-02 Thread Lukas Klein
Hi Nick, you can do this by passing the widget parameter to a CharField. A little example: password = forms .CharField (label=_(u'Password'),widget=forms.PasswordInput(render_value=False)) Lukas Am 02.11.2008 um 17:58 schrieb nkulmati: > > How come t

Re: Another error

2008-07-05 Thread lukas
aren't quite > as picky. Thanks for all your help. http://www.diveintopython.org/ might help you there - it's a good start for python-beginners. Have fun! -- Lukas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: manage.py setting sys.path wrong

2007-03-29 Thread Lukas Kolbe
is probably to set PYTHONPATH to include both > your project directory and the location of the Django source (from a > later message in this thread, it looks like your Django source is not > installed inside /usr/lib/python*/site-packages -- true?). It i

Re: manage.py setting sys.path wrong

2007-03-29 Thread Lukas Kolbe
> On Thu, Mar 29, 2007 at 02:26:32PM +0200, Lukas Kolbe wrote: > > > > Hi! > > > > I have a problem I came across for a while now. > > > > To start the fcgi-instance, I use manage.py as follows: > > > > su -c "DJANGO_DB_NAME=db

manage.py setting sys.path wrong

2007-03-29 Thread Lukas Kolbe
Of course, because settings.py lives in /srv/vhosts/myhost/site/, not /srv/vhosts/myhost/site/site! Is there anything I can do about it? Kind regards, Lukas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang