Re: Don't understand regex-urls and DetailView...

2015-03-11 Thread inoyon artlover KLANGRAUSCH
I got it! :D (?P\w+) and NOT (P? . Am Mittwoch, 11. März 2015 21:57:34 UTC+1 schrieb inoyon artlover KLANGRAUSCH: > > I don't understand why this doesn't work and smashes an > > '*The current URL, lighter, didn't match any of these.'* > > m

Don't understand regex-urls and DetailView...

2015-03-11 Thread inoyon artlover KLANGRAUSCH
I don't understand why this doesn't work and smashes an '*The current URL, lighter, didn't match any of these.'* my models.py class ShopList(models.Model): name = models.CharField(max_length=100, null=True, blank=True) description = models.CharField(max_length=100, null=True, blank=True

Re: How to make responsinator.com working with Django?

2015-03-10 Thread inoyon artlover KLANGRAUSCH
Hi no. I did a responsive site with bootstrap. But when I enter the url in responinator, nothing happens. .. Am Dienstag, 10. März 2015 16:05:03 UTC+1 schrieb inoyon artlover KLANGRAUSCH: > > Hi there, > > how can I get Django working with responsinator.com ? > > Best rega

How to make responsinator.com working with Django?

2015-03-10 Thread inoyon artlover KLANGRAUSCH
Hi there, how can I get Django working with responsinator.com ? Best regards! :) -- 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...@googl

Re: attaching an app to site via apphook fails. server crashes only (beginner question)

2015-03-06 Thread inoyon artlover KLANGRAUSCH
> *Dato: *6. mar. 2015 kl. 09.49.01 CET > *Fra: *inoyon artlover KLANGRAUSCH > > *Til: *django...@googlegroups.com > *Emne: **attaching an app to site via apphook fails. server crashes only > (beginner question)* > > I created a site and via the django-cms interface. Than ed

attaching an app to site via apphook fails. server crashes only (beginner question)

2015-03-06 Thread inoyon artlover KLANGRAUSCH
Hi there, regarding the django-cms tutorial I put this file into the 'polls' app: *cms_app.py* rom cms.app_base import CMSApp from cms.apphook_pool import apphook_pool class PollApp(CMSApp): name = 'Poll App' urls = 'polls.urls' apphook_pool.register(PollApp) I created a site and via

Re: Proble understanding DetailView url doesn't match the slug

2015-02-19 Thread inoyon artlover KLANGRAUSCH
Many thanks! Now I got it! :) Am Samstag, 14. Februar 2015 05:28:40 UTC+1 schrieb inoyon artlover KLANGRAUSCH: > > Hi there, there is something I obviously don't understand. According to > django reference, > the DetailView has to be provided a slug or pk. I do it in the

Proble understanding DetailView url doesn't match the slug

2015-02-13 Thread inoyon artlover KLANGRAUSCH
Hi there, there is something I obviously don't understand. According to django reference, the DetailView has to be provided a slug or pk. I do it in the url but django constantly doesn't recognize the slug in the url. 'current url doesn't match etc.' what is wrong here? I do everything like it

Contact form and sending confirmation an page.

2015-02-08 Thread inoyon artlover KLANGRAUSCH
Hi there! I got one page. On the page is a contact form. After clicking the 'send' button I want to change the form containing div to 'thank you for mailing us' div. And stay at the same 'id' on the page. One way to solve it is to put an another template and load it as 'success url' But this way

Re: How to toggle/set boolean-values of multiple records in the Admin?

2014-12-13 Thread inoyon artlover KLANGRAUSCH
item.active = True item.save() return item Am Samstag, 13. Dezember 2014 23:00:04 UTC+1 schrieb inoyon artlover KLANGRAUSCH: > > Hi there, > > my model is: > > class ZipCode(models.Model): > zipcode = models.CharField(max_le

How to toggle/set boolean-values of multiple records in the Admin?

2014-12-13 Thread inoyon artlover KLANGRAUSCH
Hi there, my model is: class ZipCode(models.Model): zipcode = models.CharField(max_length=5) city = models.CharField(max_length=255) active = models.BooleanField(default=False) I would like to mange the 'active' status of some entries in the admin by selecting multiple. For example

Re: How to hide the 'empty entry' value in forms relating as ForeignKey?

2014-12-08 Thread inoyon artlover KLANGRAUSCH
just set 'initial=False' within the form-field works! Am Sonntag, 7. Dezember 2014 19:57:12 UTC+1 schrieb inoyon artlover KLANGRAUSCH: > > Hi there, I got a form: > > class Answers(models.ModelForm): > > psyq11 = forms.ModelChoiceField( >

How to hide the 'empty entry' value in forms relating as ForeignKey?

2014-12-07 Thread inoyon artlover KLANGRAUSCH
Hi there, I got a form: class Answers(models.ModelForm): psyq11 = forms.ModelChoiceField( queryset=PsychologicQuestion11.objects.all(), widget=forms.RadioSelect) psyq12 = forms.ModelChoiceField( queryset=PsychologicQuestion12.objects.all(),

Re: How to set choice limit of given number on ModelMultipleChoiceField in Django?

2014-12-06 Thread inoyon artlover KLANGRAUSCH
alues in the ManyToMany? > > Collin > > On Thursday, December 4, 2014 7:20:13 PM UTC-5, inoyon artlover > KLANGRAUSCH wrote: >> >> Very cool! :) Many thanks, once more! :) Could be off-topic, but there is >> somethin more tricky: >> Before a ManyToManyField the

Re: ManyToManyField with rating using 'through' on each ManyToMany relation in Django

2014-12-05 Thread inoyon artlover KLANGRAUSCH
to a defined amount (i.e. 6 or 10) (here would be form validation best practice?) Am Freitag, 5. Dezember 2014 15:00:01 UTC+1 schrieb Collin Anderson: > > Hi, > > Create an admin Inline like this: > > class CustomInterestsInline(admin.TabularInline): > model = CustomInterests

Matching wit XOR

2014-12-05 Thread inoyon artlover KLANGRAUSCH
Hi everybody, need to accomplish a matching in following fashion: Users have to edit their psychological profile and select XOR characteristic on each category. Qestions: 1. extroverted: (checkbox) or introverted: (checkbox) 2. organised: (checkbox) or spntaneous: (checkbox) So only ONE cho

Re: How to set choice limit of given number on ModelMultipleChoiceField in Django?

2014-12-04 Thread inoyon artlover KLANGRAUSCH
l.com: > > On Thu, Dec 4, 2014 at 6:46 PM, inoyon artlover KLANGRAUSCH > > wrote: > > Great, it works with one form but not with an another... > > Btw. how is it possible to overwrite the 'this field is required' error > > message? > > You can pr

Re: How to set choice limit of given number on ModelMultipleChoiceField in Django?

2014-12-04 Thread inoyon artlover KLANGRAUSCH
4:54 PM, inoyon artlover KLANGRAUSCH > > wrote: > > Hi there, I got a following Form-Class: > > > > > > class CustomUserprofileInterestsForm(forms.ModelForm): > > > > interests = forms.ModelMultipleChoiceField( > > queryset=Interests

How to set choice limit of given number on ModelMultipleChoiceField in Django?

2014-12-04 Thread inoyon artlover KLANGRAUSCH
Hi there, I got a following Form-Class: class CustomUserprofileInterestsForm(forms.ModelForm): interests = forms.ModelMultipleChoiceField( queryset=Interests.objects.all(), widget=forms.CheckboxSelectMultiple) I want to limit the choices for example to 6 of all displayed.

ManyToManyField with rating using 'through' on each ManyToMany relation in Django

2014-12-04 Thread inoyon artlover KLANGRAUSCH
I am very beginner in the programming world, so please forgive my lack of understanding... There is a CustomUserprofile in my models.py.. nothin very special about this... class Interests(models.Model): RATING = [(y, y) for y in range(1, 7)] interest = models.CharField(max_length=4