JavaScriptCatalog: it's big or not?

2017-08-13 Thread Stanislav
Hi, JavaScriptCatalog and JSONCatalog don't contain translations from LOCALE_PATHS. settings.py LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True LANGUAGES = [ ('en', _('English')), ('de', _('German')), ('ru', _('Russian')), ] LOCALE_PATHS = (

Re: JavaScriptCatalog: it's big or not?

2017-08-17 Thread Stanislav
Tim, thanks for the answer! I asked this question on the stackoverflow and other forums but no one knows the answer. I just started to learn django and python and It is still difficult for me to understand нow to apply this test to my code. I tried to run the django test

Django table with checkboxes

2011-08-01 Thread Stanislav Nedelchev
Hi everyone, I'm quite new to django and still learning. But I face a problem that i can't solve. I have the following very simple example. Let say that I have one model for Books. class Book(models.Model): name = models.CharField(max_length=50,unique = True) description = models.TextField

Re: Django table with checkboxes

2011-08-05 Thread Stanislav Nedelchev
heckbox. https://docs.djangoproject.com/en/dev/topics/forms/modelforms/ But at the moment I don't know how to implement it . https://docs.djangoproject.com/en/dev/topics/forms/formsets/#manually-rendered-can-delete-and-can-order On 2 Авг, 00:34, Sophie Hume wrote: > Hi Stanislav > > I t

Admin pagination not digg-style

2013-04-22 Thread Stanislav Mihaylov
I can't seem to find an easy and simple way to make the Django admin paginator display all page numbers rather then displaying them in 'Digg' style in the footer navigation. I read plenty of articles on how to make it Digg style, but it seems in the new Django versions it is Digg style by defau

Re: Django Newbie - Tutorial Recommendations?

2016-03-18 Thread Stanislav Vasko
Hello, i found very usefull general tutorial at Django site: https://docs.djangoproject.com/en/1.9/intro/tutorial01/ But you can try DjangoGirls (dont worry, its not just for girls): http://tutorial.djangogirls.org Good Luck! -- You received this message because you are subscribed to the Goo

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
This is exactly what i was looking for, many thanks! Now i can render form i need and like. Now i will test and i hope it will be same easy to write data back to db. Many thanks, Stanley Dne pátek 18. března 2016 20:50:37 UTC+1 Fred Stluka napsal(a): > > Stanislav, > &g

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
Outstanding answer, many thanks! This is exactly what i thought there must be :) Dne sobota 19. března 2016 2:43:31 UTC+1 Fred Stluka napsal(a): > > Stanislav (aka Stanley?), > > As my company motto says: "Glad to be of service!". > > I'm very impressed with Dj

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
This is exactly what im trying. But if i enter *{{ form.title }}* i get not the data to use in form, but whole: ** But as i study doc, there is no simple way like Django is providing in other part. So, maybe Fred's way is a good one (but quite strange) and still dont know how i will make Fiel

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
Ufff, i hope there is another way. Something working so simple like passing data from View to Template with direct access like {{ company.name }} or {{ company.phone }}. I dont see the point why to modify Model and how it helps with styling form. -- You received this message because you are su

Forms in Django

2016-03-20 Thread Stanislav Vasko
Hello, as a noob in Django, i will ask noob question about Forms, because i cant find. I have working app, based on Bootstrap with theme and custom css. Rather than Django admin i want to create/edit data from my fields. I tried to use Django forms, but no luck. It looks... bad :) Its simple,

Redirect after Form

2016-10-30 Thread Stanislav Vasko
Greetings, trying to create new app with simple Form to create and update Company info. My view looks like: def company_new(request): if request.method == "POST": form = CompanyForm(request.POST) if form.is_valid(): company = form.save(commit=False) co

Formulár s našeptáváním a předvyplněním údajů

2021-11-29 Thread Stanislav Vasko
Zdravím, potřeboval bych poradit, nebo nakopnout na správný směr, jak řešit následující problém. Mám aplikaci, která obsahuje data o produktech, vše v modelu Product. Z toho potřebuji vytvořit nabídku pro klienta. Ta se skládá z košilky běžných prvků jako email, telefon apod., ale zároveň do na