Re: Displaying events by month

2012-06-24 Thread grimmus
Thank you Nikolas. Works perfect :) On Wednesday, June 20, 2012 11:21:28 PM UTC+1, Nikolas Stevenson-Molnar wrote: > > First, order by date in your query: > > events = Event.objects.order_by('date') > > Then in your template, use the ifchanged tag ( > https://docs.djangoproject.com/en/1.4/ref/te

Re: Stuck with a dynamic form within formwizard

2012-06-24 Thread het.oosten
I saw that lots will change in formwizard in future releases of Django, and i could not get this working. Therefore i switched to Jquery formwizard http://thecodemine.org/ This plugin makes it possible to show parts of forms on different pages (and do some server side validation when switching betw

django-tynimce

2012-06-24 Thread Xavier Pegenaute
Hi, I am using this application, I am able to render the widget but when I am clicking save (tinymce button or html button) the POST form is sent but without the content of the textarea. Any one have some experience about it? My config js is attached and the html rendered code is as follows:

Re: 403 error when POSTing to a view with csrf protection

2012-06-24 Thread Cal Leeming [Simplicity Media Ltd]
Hi Mike, Please provide some code examples, a traceback snippet and a bit more info. Here are some great tips on how to do this: https://code.djangoproject.com/wiki/UsingTheMailingList Without this information, others on the list may find it much more difficult to help you. Cal On Sun, Jun 24,

acces cleaned data from a dynamic form

2012-06-24 Thread het.oosten
Django 1.2.3 For a restaurant i want to make a form, were the user can add their address, and their order. The order part is dynamic (users can add extra fields). I used jquery.formset for this. To accomplish this i have an address form and a dishes formset: class Address(models.Model):

Re: Integrity Error: column username is not unique

2012-06-24 Thread Dhivya
Hi, username field in django.contrib.auth.User model is unique. Probably, the username you are trying to save already exists. In your view, you might want to check, try: username = User.objects.get(username=form.cleaned_data['username']) except ObjectDoesNotExist: #create user new obje

comment moderation can't work with customized comment

2012-06-24 Thread libsoft
Hi all, The generic comment moderation worked as expected in my application while using the default comment model. Moderation stopped setting ``is_public`` to ``0`` when I customized the build-in comment app by adding a title field as the dev doc said. Here is the code. models.py class Post(

Re: Send message to SMS Gateway

2012-06-24 Thread Andreas
Have a look at a Bulk SMS Gatway from txtNation - SMS Gateway. See the SMPP API on-line at: http://wiki.txtnation.com/wiki/SMPP_Bulk and their info on http://gateway.txtnation.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this di

Re: Working Django forums code for integration?

2012-06-24 Thread brycenesbitt
Are there any forum packages not listed at > > http://www.djangopackages.com/grids/g/forums/ -- 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/django-users/-/OefJfoaDiVoJ.

DISTINCT ON fields is not supported by this database backend

2012-06-24 Thread upmauro
Please help, http://dpaste.com/762942/ Thanks alot ! -- 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/django-users/-/v5qIbmtR5ZwJ. To post to this group, send email to dj

Re: DISTINCT ON fields is not supported by this database backend

2012-06-24 Thread Marcin Tustin
DISTINCT ON fields is not supported by this database backend What more is there to say? Either stop using the distinct method, or switch to another database backend. On Sun, Jun 24, 2012 at 11:24 AM, upmauro wrote: > Please help, > > http://dpaste.com/762942/ > > Thanks alot ! > > -- > You rec

Re: New to DJANGO

2012-06-24 Thread Lachlan Musicman
On Thu, Jun 21, 2012 at 9:37 PM, LJ wrote: > I started out learning Django using the "Writing your first Django app" > article: > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > This is a very well-written tutorial that goes through each part in detail. > Please note, at the bottom of ea

Finding a developer

2012-06-24 Thread Bob Carlson
I have been planning to implement my backend server in Django/Python but I am still in the early phases. I thought I ought to look into Ruby on Rails as well. The technical articles comparing them come out pretty even. It appears that there is perhaps three times as much RR activity out there as Dj

Re: Finding a developer

2012-06-24 Thread Raphael
Hello Bob, I think its easier to find a RR developer than a django developer (definitely in my region / and I think this is international) In terms of costs both should be quite similar - Experience will set the rate. Regards, -- Raphael http://develissimo.com On Sun, 2012-06-24 at 13:35 -07

Re: 403 error when POSTing to a view with csrf protection

2012-06-24 Thread Kurtis Mullins
Hey Mike, Make sure that you include this within your block: {% csrf_token %} Then, check the source code of that page to make sure the CSRF token tag was included. Finally, using a Javascript debugger (such as Firebug) check to make sure that your request sent, when clicking the "submit" butt

Re: Finding a developer

2012-06-24 Thread Mengu
well, it may be hard to find if you require their presence otherwise you will find many great developers who are looking for remote full/ part time work. On Jun 24, 11:35 pm, "Bob Carlson" wrote: > I have been planning to implement my backend server in Django/Python but I am > still in the early

Userena configuration

2012-06-24 Thread Bastian
Hi, I just installed Userena and it works fine. I would like to use the signup form where the button for the terms of service appear but I can't find how. And also when editing a user profile, there is a field called privacy, it does not really make sense in my case so I set it up to default to

Re: Userena configuration

2012-06-24 Thread Kurtis Mullins
Hey Bastian, For the privacy portion, you'll need to create your own Form based on the Userena's user-editing form and just exclude that field. As for the terms of service -- I'm not sure off of the bat. I could possibly take a look in the next few days if nobody jumps in with an answer. You migh

Uninstall for clean install

2012-06-24 Thread thomasgrzybow...@gmail.com
I need to uninstall django (on ubuntu) so as to do a clean installation. Anybody have a procedure for removing django cleanly? Thanks -- 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.goog

Re: Installing via Tutorial Part 2 / MacOSX / Can't create a superuser due to locale() problem.

2012-06-24 Thread Bill Torcaso
On Friday, June 22, 2012 3:46:42 PM UTC-4, Bill Torcaso wrote: > > > Hi, > I'm working through the tutorail. Part 1 was fine, and part 2 shows me > the site with the light blue background. I proceed to make my first app, > 'djangotest'. > >1. I run django-admin.py and get a project >2

Re: Installing via Tutorial Part 2 / MacOSX / Can't create a superuser due to locale() problem.

2012-06-24 Thread Bill Torcaso
Thanks, Kurtis. More googling brought me the answer, found here: http://level09.com/54/tip-how-to-fix-django-locale-problem-on-mac-osx-10-7 The solution is to explicitly export LANG and a bunch of LC_* local variables in ~/.bashrc. This may be a workaround, but it's good enough for me.

Re: Uninstall for clean install

2012-06-24 Thread Gethin Llyn ab Alwyn
How did you install it? Did you do it through apt-get or did you install it through a downloaded tar.gz package from the Django website? On Jun 25, 2012 12:31 AM, "thomasgrzybow...@gmail.com" < thomasgrzybow...@gmail.com> wrote: > I need to uninstall django (on ubuntu) so as to do a clean install

Re: Uninstall for clean install

2012-06-24 Thread Gethin Llyn ab Alwyn
To answer my own question, if you did it through the package manager try sudo apt-get purge python-django on the command line if from tar.gz package, on the command line change directory to /usr/local/lib/python(your version)/dist-packages/ and delete django files there using sudo rm django -rf

Re: runserver and the tty echo flag

2012-06-24 Thread Karen Tracey
On Tue, Jun 5, 2012 at 9:18 AM, Bill Freeman wrote: > I have been noticing in recent Django versions (I don't remember it in > 1.2, probably) that having run the development server, the tty's echo > flag is set afterwards, no matter its value before. (I frequently run > from an emacs shell windo

Re: Uninstall for clean install

2012-06-24 Thread Lachlan Musicman
Thomas, If you've ever wanted to know why vitualenv is a good idea - here's a great reason. Since it compartmentalises everything - packages the whole deal, you can just create a new virtualenv and start developing. http://www.arthurkoziel.com/2008/10/22/working-virtualenv/ Cheers L. On Sun, J

Re: Uninstall for clean install

2012-06-24 Thread Gethin Llyn ab Alwyn
+1 virtualenv, and virtualenvwrapper On Jun 25, 2012 2:06 AM, "Lachlan Musicman" wrote: > Thomas, If you've ever wanted to know why vitualenv is a good idea - > here's a great reason. Since it compartmentalises everything - > packages the whole deal, you can just create a new virtualenv and > sta

base_url() in django

2012-06-24 Thread Raitucarp
Actually, I was PHP developer, I use codeigniter as framework. In codeigniter, we can call helper url functions base_url() and it will return absolute domain url such: http://example.com or https://example.com It is automatically, we even don't need to create custom function, because base_url(

Re: Creating permalink for blog tags that have the Post class as foreign key

2012-06-24 Thread Russell Keith-Magee
On Mon, Jun 25, 2012 at 8:40 AM, Matthew Meyer wrote: > Hi all, Django newbie here, > > I have a simple blog app I am working on and am trying to figure out the > best way to create a permalink for tags that I have added for blog posts. > Basically, my models.py consists of two classes: Post and T

Re: Creating permalink for blog tags that have the Post class as foreign key

2012-06-24 Thread Matthew Meyer
I didn't think to check the shell! It is definitely issue 2. I was able to output: >>> for tag in post.posttag_set.all(): tag.get_absolute_url() ... '/blog/footag/' which is exactly what I expect. (I have one post with the tag "footag") post = get_object_or_404(Post, tag='footag') returns the

Re: Creating permalink for blog tags that have the Post class as foreign key

2012-06-24 Thread Matthew Meyer
I didn't think to check the shell! It is definitely issue 2. I was able to output: >>> for tag in post.posttag_set.all(): tag.get_absolute_url() ... '/blog/footag/' which is exactly what I expect. (I have one post with the tag "footag") post = get_object_or_404(Post, tag='footag') returns the

Re: Creating permalink for blog tags that have the Post class as foreign key

2012-06-24 Thread Matthew Meyer
After making some changes debugging in the shell revealed, I have gotten it to work, thanks!!! On Sunday, June 24, 2012 9:13:32 PM UTC-4, Russell Keith-Magee wrote: > > On Mon, Jun 25, 2012 at 8:40 AM, Matthew Meyer > https://mail.google.com/mail/?view=cm&fs=1&tf=1&source=mailto&to=matthewwillia