Re: staticfiles ManifestStaticFilesStorage and Form Media

2015-12-06 Thread Denis Cornehl
Hi Brian, a sidenote, this will be fixed: https://github.com/django/django/pull/5571 -- Denis Am Sonntag, 6. Dezember 2015 um 17:17 schrieb Brian Neal: > I'm investigating using staticfiles ManifestStaticFilesStorage. Unless I'm > missing something, there seems to be a hole with Django

Re: Problem Working with forms.Form

2015-12-06 Thread sum abiut
You can use modelForm. for example in you form.py file, you can do something like this: class addstaff(forms.ModelForm): class Meta: model =new_staff fields =('first_name', 'last_name', 'gender', 'date_of_birth') and in your view.py you do something like this: def

Re: Drop and replace SQL Table automatically when Model is migrated

2015-12-06 Thread Alexander Whatley
I will check with the people who made the IDE. Thanks for the input. On Sunday, December 6, 2015 at 3:22:50 PM UTC-5, Alexander Whatley wrote: > > This question may just be due to my inexperience with Django, but whenever > I modify one of my Model elements and change its parameters, I have to

Re: Drop and replace SQL Table automatically when Model is migrated

2015-12-06 Thread James Schneider
On Dec 6, 2015 4:48 PM, "Mike Dewhirst" wrote: > > On 7/12/2015 7:21 AM, Alexander Whatley wrote: >> >> This question may just be due to my inexperience with Django, but >> whenever I modify one of my Model elements and change its parameters, I >> have to close my IDE and

Re: Drop and replace SQL Table automatically when Model is migrated

2015-12-06 Thread Mike Dewhirst
On 7/12/2015 7:21 AM, Alexander Whatley wrote: This question may just be due to my inexperience with Django, but whenever I modify one of my Model elements and change its parameters, I have to close my IDE and manually use the command prompt to drop the SQL Table corresponding to the Model, and

Re: Windows browser vs Django app running on Ubuntu in a VirtualBox

2015-12-06 Thread bobhaugen
Remco, thanks a lot for the response, and your answer makes sense to me. Unfortunately, I am not Chris, and I do not have a Windows box, so I need to wait until he gets time to try it out to validate it. But when he responds, I will, This is just to thank you for your answer and let you know

Re: Django

2015-12-06 Thread sum abiut
what error message are you getting? cheers On Mon, Dec 7, 2015 at 8:01 AM, Vinod Jat wrote: > i am new in django. i have installed django but i got errors about > configuring please help > > -- > You received this message because you are subscribed to the Google Groups >

Django

2015-12-06 Thread Vinod Jat
i am new in django. i have installed django but i got errors about configuring please help -- 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

Re: But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-06 Thread Валерий Бовсуновский
Thank you very much for the plan and a link to the documentation. I used to work with the documentation, it is now clear what to do. воскресенье, 6 декабря 2015 г., 23:03:42 UTC+3 пользователь Sergiy Khohlov написал: > > Nature language of this maillist is English. Please keep this in mind >

Drop and replace SQL Table automatically when Model is migrated

2015-12-06 Thread Alexander Whatley
This question may just be due to my inexperience with Django, but whenever I modify one of my Model elements and change its parameters, I have to close my IDE and manually use the command prompt to drop the SQL Table corresponding to the Model, and then migrate the new model, which is very

Re: But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-06 Thread Sergiy Khohlov
Nature language of this maillist is English. Please keep this in mind Take a look at the example at https://docs.djangoproject.com/en/1.8/topics/db/queries/ your task is subpart of the task in documentations. General procedure is next : 1) set user authorization 1a) This is not important

Re: Problem Working with forms.Form

2015-12-06 Thread Gergely Polonkai
Hello, you should use ModelForm; if the only problem you have is the CSS properties, you may assign custom CSS classes to your widgets, and use templates to render your fields individually. Best, Gergely On Dec 6, 2015 5:33 PM, "Teddy McZieuwa" wrote: > Hi, > please, I am

Re: django-admin startproject mysite showing invalid syntax

2015-12-06 Thread 'Hugo Osvaldo Barrera' via Django users
On Sun, Dec 6, 2015, at 16:09, Guntaka Jeevan wrote: > i have installed django using pip from anaconda but when i type   django- > admin startproject mysite it is showing   File "", line 1 > django-admin startproject mysite                             ^ > SyntaxError: invalid syntax

django-admin startproject mysite showing invalid syntax

2015-12-06 Thread Guntaka Jeevan
i have installed django using pip from anaconda but when i type django-admin startproject mysite it is showing File "", line 1 django-admin startproject mysite ^ SyntaxError: invalid syntax -- You received this message because you are subscribed to the

date picker

2015-12-06 Thread Sid
Hi all, *Problem:* I have a data set which shows on web page using django and another webpage consists of datepicker *code:(views.py)* def about(request): #change the file name here every

Problem Working with forms.Form

2015-12-06 Thread Teddy McZieuwa
Hi, please, I am new to django, I just need to know to save to a database while using 'forms.Form' utility and how does it know which database model to use. I do not want to use the 'forms.ModelForm' because i would like to customize, I don't want django giving me its default style form.

staticfiles ManifestStaticFilesStorage and Form Media

2015-12-06 Thread Brian Neal
I'm investigating using staticfiles ManifestStaticFilesStorage. Unless I'm missing something, there seems to be a hole with Django forms Media class. If you use an inner Media class you do not get the hashed versions of the assets filenames. This leads me to believe you can't use the Forms

Re: Need a Tutorial

2015-12-06 Thread Derek
http://learnpythonthehardway.org/book/ is also available for free online; I second Andrew's recommendation of it... On Saturday, 5 December 2015 18:43:58 UTC+2, Andrew Farrell wrote: > > Python tutorials: > The tutorial I first learned python from was Think Python >

Re: But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-06 Thread Валерий Бовсуновский
Забыл сказать, спасибо большое Сергей за мысль. (есть над чем работать). Просто давно пользовался moodle на php там была возможность создать страницу, книгу, ссылку. И я хочу нечто такое сделать. воскресенье, 6 декабря 2015 г., 1:33:32 UTC+3 пользователь Sergiy Khohlov написал: > > Two models

Re: But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-06 Thread Валерий Бовсуновский
В просто варианте получается так как, я понимаю. Модель Book и связанная с ней модель Pages, связанная многие к одному. class Book(models.Model): book = models.CharField(max_length=200) def __unicode__(self): return self.book class Pages(models.Model): connect =