Re: Django Channels App Design

2017-04-28 Thread Andrew Godwin
Hi Ethan, Distributed collaboration is kind of a generally unsolved problem, so there's no real best approach for what you have here. Having each environment assigned to a single process (worker) definitely helps keep things in shape, and if it's working for you, then I'd keep going with it. My p

Re: NoReverseMatch

2017-04-28 Thread James Schneider
On Apr 28, 2017 4:32 PM, "shahab emami" wrote: hi this is for the id. your url must be like this: url(r'^events/((?P\d+))/delete/$', views.delete_event, name= 'delete_event'), you also need to give an amount in your template to the id: action="{% url 'cal:delete_event' id=an_event_id %}">

Generating HDF5 and downloading

2017-04-28 Thread avillaum
Hi everybody, I'm making my first website with Django (also my first website ever). I've successfully gotten a web app that takes user data, uses that to make a query, and the outputs a CSV file. However, what I'd really like is to output an HDF5 file. I googled around and there doesn't seem to

Generating HDF5 and downloading

2017-04-28 Thread avillaum
Hi everybody, I've successfully gotten a web app that takes user data, uses that to make a query, and the outputs a CSV file. However, what I'd really like is to output an HDF5 file. I googled around and there doesn't seem to be any documentation on outputting an HD5F file from a Django web ap

Django Channels App Design

2017-04-28 Thread Ethan Knapp
As background, I am developing a web app that implements Channels in what seems like an unusual way, so I want to do some validation and ask some opinions and suggestions. The application allows multiple users to work together in the same 3D environment (using Three.js on the client), being abl

Re: NoReverseMatch

2017-04-28 Thread shahab emami
hi this is for the id. your url must be like this: url(r'^events/((?P\d+))/delete/$', views.delete_event, name= 'delete_event'), you also need to give an amount in your template to the id: action="{% url 'cal:delete_event' id=an_event_id %}"> On Saturday, April 29, 2017 at 1:08:46 AM UTC

Re: NoReverseMatch

2017-04-28 Thread Will Holmes
Hey, Traceback: == ERROR: test_event_view (cal.tests.EventsTestCase) -- Traceback (most recent call last): File "/Users/williamholmes/organiser/organis

Re: NoReverseMatch

2017-04-28 Thread James Schneider
Hey all, Can anyone tell me the (probably quite obvious) reason my reverse match isn't working? Post the traceback and urls.py files. You're referencing the 'cal' name space, so the single URL line you posted is not enough to make a determination. -James -- You received this message because y

NoReverseMatch

2017-04-28 Thread Will Holmes
Hey all, Can anyone tell me the (probably quite obvious) reason my reverse match isn't working? Template: Url: url(r'^events/(\d+)/delete_event$', views.delete_event, name='delete_event'), View: def delete_event(request, id): Events.objects.filter(id=id).delete() return redirect(

Re: CSRF token missing or incorrect when uploading large file through admin interface

2017-04-28 Thread ludovic coues
Related to your problem, I wonder if it's the same instance of django handling serving the form and handling saving the file. Different instance of django might expect different token. Less related to your issue, I suggest that you have a look at butler, an open source project from itch.io. For co

Re: Where is django-admin?

2017-04-28 Thread shahab emami
then you have to open your command line in the same path that django-admin.py is. On Friday, April 28, 2017 at 3:39:04 PM UTC+4:30, Pelle Pälsänger wrote: > > Yes I know where django-admin.py is. I > put C:\Users\stig\djangogirls\myvenv\Scripts in my path. > BR, > Stig > > > > Den torsdag 27 a

Change password using django ADMIN

2017-04-28 Thread Reynaldo Bernard
When i change LANGUAGE_CODE = 'en-us' to 'es-mx' and i try to change password from USER TABLE (default in Django) i got the next error Check this video to see it : htt

Python Dependency Injection - Designing Module Part-2

2017-04-28 Thread Bhagyoday
*Worth A Read! #Python #Django* https://hashedin.com/2017/04/26/python-dependency-injection/ -- 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+unsub

django formset

2017-04-28 Thread shahab emami
hello i search for my question on google and this group by i couldn't find the answer. maybe I am not a good searcher.D i have a formset. there is a field for birth date in my form then as you know there are a few birth date field in my formset. I use this jquery plugin to add form dynamically:

Re: Where is django-admin?

2017-04-28 Thread Pelle Pälsänger
Yes I know where django-admin.py is. I put C:\Users\stig\djangogirls\myvenv\Scripts in my path. BR, Stig Den torsdag 27 april 2017 kl. 15:22:13 UTC+2 skrev Pelle Pälsänger: > > Hi! > > I try to learn how to create web apps with django on windows10. > I have downloaded django1.11 ($git clone

Re: Where is django-admin?

2017-04-28 Thread Pelle Pälsänger
Den torsdag 27 april 2017 kl. 15:22:13 UTC+2 skrev Pelle Pälsänger: > > Hi! > > I try to learn how to create web apps with django on windows10. > I have downloaded django1.11 ($git clone > https://github.com/django/django.git) and installed it ($py -m pip > install Django==1.11). > I follow >

Re: Where is django-admin?

2017-04-28 Thread Andréas Kühne
Have you tried searching for django-admin.py? It is a regular python file that should be installed in your virtual environment. I have never used django on windows, so I don't know where that would be. If you can find the file your path probably needs updating? Regards, Andréas 2017-04-28 10:5

Re: Where is django-admin?

2017-04-28 Thread Pelle Pälsänger
OK, I have done installations of pip, myvenv and django. No problems. Then I try django-admin.py startproject mysite . But nothing happens. No messages in the command window and no new directories in C:\Users\stig\djangogirls. The same problem as before following another tutorial. Does anyone ha

Re: solve disallowedhost issue with AWS

2017-04-28 Thread Adnan
You might want to read this: https://hashedin.com/2017/01/06/5-gotchas-with-elastic-beanstalk-and-django/ On Friday, April 28, 2017 at 12:35:18 AM UTC+2, M wrote: > > Hi, Im trying to deploy my website using AWS, and I basically just follow > the AWS tutorial at > http://docs.aws.amazon.co

Re: Where is django-admin?

2017-04-28 Thread ludovic coues
You might be more successful with a different tutorial. I recommend django girls for all beginner. It's great tutorial, the most beginner friendly I've seen. That's how I learned to use form in django. https://tutorial.djangogirls.org/en/django_installation/ This link is where they show how to ins