Re: Django - Populating more than one model from the same form ?

2016-07-09 Thread Paul
thanks, outside not in admin, I will check the links provided On Saturday, July 9, 2016 at 10:52:38 PM UTC+3, ludovic coues wrote: > > If you are trying to do it outside of the admin, the previous link > might not be exactly what you are look for. The doc on inlines formset > [1] might be more u

Re: TemplateSyntaxError at /

2016-07-09 Thread Malik Rumi
God damn. That was it - something silly and obvious, but only to a fresh set of eyes. Thank you! On Sat, Jul 9, 2016 at 6:44 PM, James Schneider wrote: > > On Jul 9, 2016 6:38 PM, "Malik Rumi" wrote: > > > > > > Invalid template name in 'extends' tag: ''. Got this from the > 'baseX.html' variab

Re: TemplateSyntaxError at /

2016-07-09 Thread James Schneider
On Jul 9, 2016 6:38 PM, "Malik Rumi" wrote: > > > Invalid template name in 'extends' tag: ''. Got this from the 'baseX.html' variable. > > The first line in index.html is: > {% extends baseX.html %} > Try adding quotes around "baseX.html", your referring to it as a variable, not as the name of th

Django Tutor / Teacher

2016-07-09 Thread Malik Rumi
Where can I find a well qualified Django expert to work with me one on one on my site? I'm willing to pay, of course. I looked at Codementor, but once I picked several people, I got this "so and so has not been responding recently,...". I'd rather have someone in my time zone (California) and w

TemplateSyntaxError at /

2016-07-09 Thread Malik Rumi
Invalid template name in 'extends' tag: ''. Got this from the 'baseX.html' variable. The first line in index.html is: {% extends baseX.html %} I got this error when trying out a new template package I bought. I thought it was telling me something was wrong with the name of the base template

Re: Django - Populating more than one model from the same form ?

2016-07-09 Thread ludovic coues
If you are trying to do it outside of the admin, the previous link might not be exactly what you are look for. The doc on inlines formset [1] might be more usefull. It's the same thing, but as a generic form instead of a part of the admin. [1] https://docs.djangoproject.com/en/1.9/topics/forms/m

Re: Django - Populating more than one model from the same form ?

2016-07-09 Thread ludovic coues
Have you done the django tutorial ? Part 7 [1] Should answer your question. [1] https://docs.djangoproject.com/en/1.9/intro/tutorial07/ 2016-07-09 18:03 GMT+02:00 : > I have a 2 Models, Product and Image. Image has a foreign key to Product. > > In the form I want to appear information from both

Re: no django reverse match

2016-07-09 Thread ludovic coues
After reading your message, I don't know what the app should do, and what happen currently. I don't know if there is an error or not. Some part are missing like the imports, app_name in urls.py or the url for message_board:list. As a sidenote, I will suggest you to look the authentication views [

Change link on img in template using forms

2016-07-09 Thread Dariusz Mysior
How in template.html change link on . Zdjecie: Teraz: avatar/n.jpg In forms.py like below I see that I can change label name, but how can I do this with ??? class MysiteUserForm(forms.ModelForm): #age = forms.IntegerField(min_value=

Re: Possible Bug in RegexURLResolver

2016-07-09 Thread Markus Holtermann
Hey, I did indeed not consider the multi-threading behavior on uwsgi when writing that. Can you post this to django-develop...@googlegroups.com and open a ticket for that. I'd love to get someone else's input. Thanks /Markus On Sat, Jul 09, 2016 at 08:36:44AM -0700, a.bra...@rataran.com wrote:

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-09 Thread sevenrrainbow
Thanks. On Friday, July 8, 2016 at 7:59:23 PM UTC+3, luisza14 wrote: > > See https://docs.djangoproject.com/en/1.9/topics/forms/media/ > > 2016-07-08 10:58 GMT-06:00 Luis Zárate >: > >> >> 2016-07-08 10:24 GMT-06:00 >: >> >>> and save the new im >> >> >> You can start reading how to set css and js

Re: Django - File or Image Delete

2016-07-09 Thread sevenrrainbow
This way the Image is removed from database, not from the server. On Friday, July 8, 2016 at 6:41:57 PM UTC+3, Mstislav Kazakov wrote: > > Just pass empty value in file field. > If blank=True and null=True, everything should work fine and image will be > removed. > > пятница, 8 июля 2016 г., 17:2

Django - Populating more than one model from the same form ?

2016-07-09 Thread sevenrrainbow
I have a 2 Models, Product and Image. Image has a foreign key to Product. In the form I want to appear information from both the Product and the Image, because are related. I use also GCBV for views, and model for forms. How can be done ? -- You received this message because you are subscribe

Username in password_reset_email

2016-07-09 Thread jorrit787
I want to include a reminder of a user's username in the password reset email, but I can't seem to include the username variable in the context. I'm trying to include it via the extra_email_context parameter in the URL pattern, but that doesn't work: url(r'^password_reset/$', django_auth_views.

Possible Bug in RegexURLResolver

2016-07-09 Thread a . branco
Hello everyone. I'm using django (1, 10, 0, u'beta', 1). When I try to reverse url in shell everything goes fine. When under nginx/uwsgi with many concurrent request I get ... /local/lib/python2.7/site-packages/django/urls/resolvers.py", line 241, in reverse_dict return self._reverse_dict

Re: Invalid HTTP_HOST header in shared server

2016-07-09 Thread James Schneider
On Jun 27, 2016 6:59 PM, "Luis Zárate" wrote: > > Hi, > > I am having some issue with gunicorn/nginx configuration. I have a shared server that support several sites (all based in Django) with the same ip address. > > Invalid HTTP_HOST header: 'www.mysite.com'. You may need to add ' www.mysite.co

Re: NoReverseMatch at /accounts/accounts/auth/

2016-07-09 Thread ludovic coues
A full stacktrace and the content of urls.py would be nice. 2016-07-09 13:46 GMT+02:00 : > I tried my best to solve this but i couldn't please help me > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and s

NoReverseMatch at /accounts/accounts/auth/

2016-07-09 Thread ashutosh13103496
I tried my best to solve this but i couldn't please help me -- 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...@googlegroups.com. To post t

no django reverse match

2016-07-09 Thread ashutosh13103496
this is my login view ... def login(request): # c = {} # c.update(csrf(request)) return render(request, 'envato.rathemes.com/infinity/topbar/login.html') def auth_view(request): username = request.POST.get('username', '') password = request.POST.get('password', '') user

Re: how should i make a non downloadable image in my django website

2016-07-09 Thread Michal Petrucha
On Sat, Jul 09, 2016 at 12:24:25PM +0200, ludovic coues wrote: > If the image is displayed, the user can use a screen capture tool to get it. > > You can make it harder for your user to get the image by putting a > transparent image on top of the displayed image. You can put the image > as a backg

Re: how should i make a non downloadable image in my django website

2016-07-09 Thread ludovic coues
If the image is displayed, the user can use a screen capture tool to get it. You can make it harder for your user to get the image by putting a transparent image on top of the displayed image. You can put the image as a background on a div. You can cut the image in many part and display a grid of

Re: Django TCP Socket Communication

2016-07-09 Thread Anil reddy reddy M
And I want use Celery with rabbitmq Broker in this process. On Saturday, July 9, 2016 at 12:28:37 PM UTC+5:30, Anil reddy reddy M wrote: > > Hi, > Yeah, I am ready > > On Thursday, June 16, 2016 at 5:12:52 PM UTC+5:30, Sergiy Khohlov wrote: >> >> Have ready this kind of application using django