Re: Hi, i'm new to django i need some mini project which contain atleast 4 page for go through how it works

2016-08-29 Thread 'voger' via Django users
Have a look at this guys youtube channel https://www.youtube.com/user/CodingEntrepreneurs/playlists There he has some video playlists. The most interesting for you are trydjango1.9 and trydjango1.8 where he builds two different websites. I think they fit perfectly with what you asking. If you

Re: How can I capture two slugs in one URL pattern?

2016-08-21 Thread 'voger' via Django users
I barely understand django my self but I hope I am pointing you in the right direction. 1. I don't understand what the (?:/(?P[\w\d-]+))?/ part in your pattern is supposed to do. My regexp-fu is weak so I can't comment on that 2. Your url will match and pass to the view whatever url you give

Re: How do I build this ignore pattern for collectstatic?

2016-08-17 Thread 'voger' via Django users
As to what kind of pattern it expects I found it. It expects glob style patterns like the shell prompt. Not much matching to be done here. Still I am curious if there is any clever way to achieve this with pattern matching. On 16/08/2016 11:30 μμ, 'voger' via Django users wrote: Let's say

How do I build this ignore pattern for collectstatic?

2016-08-17 Thread 'voger' via Django users
Let's say somewhere inside my /static/ folder I have this tree $ tree -L 2 -F --dirsfirst . ├── qooxdoo -> ../../../qooxdoo// └── qssite/ ├── build/ ├── source/ ├── apache2.conf ├── config.json ├── config.json_orig ├── config.json_test ├── decode-source-uris.js

Re: Please help me out, I tried to get sync for whole day @@

2014-04-19 Thread voger
If there is a space in front of DATABASES then yes it is wrong. Python doesn't forgive lousy indentation On 04/19/2014 06:11 PM, Toan ComS wrote: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mysite'), } }

Re: Please help me out, I tried to get sync for whole day @@

2014-04-19 Thread voger
There it says "unexpected indent" and points to the DATABASES in your settings.py. Check to see if it is indented properly. On 04/19/2014 05:02 PM, Toan ComS wrote: -- You received this

How to use custom widgets with dojango?

2014-04-19 Thread voger
I want to move my project from jquery to dojo toolkit and I see that there is a dojango project that integrates dojo with django. The instructions are simple enough and I already managed to run the sample project provided. Unfortunately I need to use some custom dojo widgets that I already

Re: Extended profile not being saved django-allauth

2014-03-17 Thread voger
='test1') >>> print u test1 >>> u.userprofile Traceback (most recent call last): File "", line 1, in File "/home/voger/ssite_venv/lib/python2.7/site-packages/django/db/models/fields/related.py", line 206, in __get__ self.related.get_accessor_name()))

Re: Extended profile not being saved django-allauth

2014-03-17 Thread voger
Hi, thanks for the reply. I didn't know about the related_name. I tried it, did a syncdb witch didn't do anything but still the extra fields don't save. On 03/17/2014 06:25 PM, Fabio Caritas Barrionuevo da Luz wrote: Voyager, Have you tried putting related_name in the Foreign Key? class

Extended profile not being saved django-allauth

2014-03-16 Thread voger
I am trying to extend the user profile according to this page https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#extending-the-existing-user-model I am using django-allauth for registration. My problem is that when the user registers I can't find any new rows in the database. The

Re: Can please someone explain this code from the docs?

2014-03-14 Thread voger
On 03/14/2014 11:49 PM, Shawn Milochik wrote: That's just the syntax for calling a method on the base class. 1. MultiEmailField is a subclass of forms.Field. 2. forms.Field has a method named validate. 3. MultiEmailField also has a method named validate, so it overrides the one on forms.Field.

Can please someone explain this code from the docs?

2014-03-14 Thread voger
Hi, I was reading the form validation section here https://docs.djangoproject.com/en/dev/ref/forms/validation/ and the very first example is this code from django import forms from django.core.validators import validate_email class MultiEmailField(forms.Field): def to_python(self, value):

Re: [ELI5] how to deploy django

2014-03-04 Thread voger
/sites-available/default. to default.bak so apache wouldn't default to that. No need for httpd.conf file. I couldn't find any in my server anyway. The project is named ssite and the projects folder is simply it's parent folder. Hope this helps Alias /robots.txt /home/voger/projects/ssite/static

Should I keep used email confirmations?

2014-02-06 Thread voger
Hi, I am using django-allauth to register and authenticate users in my site. I am a little bit confused with the way it handles email verifications. After the message is sent to the user and the user confirms his email the confirmation stays available on the site. I saw the source code for the

Seperate fields for SelectDateWidget in template

2014-01-06 Thread voger
I have Googled a lot but I can't find an answer. I want to use SelectDateWidget in one of my forms but I want the select boxes in separate divs so I can use them with Zurb Foundation. With all the other widgets it is easy. For example I can do {{ form.username.label_tag

SelectDateWidget doesn't work after reload

2013-12-15 Thread voger
I am trying to make a sign up form and there I want to get the users birth date. I want to use the select date widget. in my models.py I have set a model field: birth_date = models.DateField(verbose_name='Birth Date') and my forms.py looks like this: from django import forms from

Re: How to build the Django book?

2013-11-10 Thread voger
On 11/10/2013 12:57 AM, Russell Keith-Magee wrote: On Sun, Nov 10, 2013 at 12:05 AM, voger <vogernewslett...@yahoo.gr <mailto:vogernewslett...@yahoo.gr>> wrote: The django book was my first contact with django but as the website itself states it is way out of date (coverin

How to build the Django book?

2013-11-09 Thread voger
The django book was my first contact with django but as the website itself states it is way out of date (covering django 1.0 and mentioning here and there 1.4). The same website suggests their github page https://github.com/jacobian/djangobook.com where the book updates are work in progress

Is there a tutorial for django-allauth?

2013-09-16 Thread voger
Hi, I want to use django-allauth in my project and I would like to to use it both for local registrations and registrations using Facebook. Unfortunately every tutorial I find describes how to use it with various providers but nothing is being said about local registrations. As this is my very

Re: ImportError No module named django.core

2013-09-07 Thread voger
Hi, I am as noob as you so maybe this is a case of blind leading blind. From what I hear it is considered best practice to first create a virtualenv and then install django and any other packages inside that virtualenv. Read here for virtualenv

Re: [SOLVED] NoReverseMatch at /polls/

2013-09-07 Thread voger
Problem solved. I missed a step in the tutorial where name spacing in the root URLconf was discussed. I still don't understand it completely but the bottom line is that the line number 4 in the file index.html should be replaced with {{ poll.question }} On 09/07/2013 11:29 PM, voger wrote

Re: NoReverseMatch at /polls/

2013-09-07 Thread voger
. Request Method: GET Request URL: http://127.0.0.1:8000/polls/ Django Version: 1.5.2 Exception Type: NoReverseMatch Exception Value: Reverse for 'detail' with arguments '(1,)' and keyword arguments '{}' not found. ... In template /home/voger/PycharmProjects/mysite/polls/templates

NoReverseMatch at /polls/

2013-09-07 Thread voger
Type: NoReverseMatch Exception Value: Reverse for 'detail' with arguments '(1,)' and keyword arguments '{}' not found. ... In template|/home/voger/PycharmProjects/mysite/polls/templates/polls/index.html|, error at line*4* Reverse for 'detail' with arguments '(1