Re: HELP WITH THIS CODE!!

2017-10-19 Thread Lachlan Musicman
No that code wont work - it looks more like Java. Pro tip: if you want answers in this email list, you will definitely get a response if you paste your code rather than a screen shot, and if you show that you have completed the Django Tutorial as written by the developers.

how to run popen in django with apache? help~

2017-10-19 Thread Wu, Pei
Hi Django I googled web two days, not find a solution yet, so I mail to group. Here is my post, I want to use popen to run a simple command to copy file to s3. https://stackoverflow.com/questions/46814197/how-to-run-popen-in-django-with-apache-help The problem is apache, if Django use apache,

HELP WITH THIS CODE!!

2017-10-19 Thread Giovanny ordoñez
Hi guys!. i am new in this community. i need help with this code . is python using framework django. yo can say me, than do this code. -- You received this

Re: Django Deployment showing list of directory

2017-10-19 Thread sarfaraz ahmed
This is been fixed On Monday, 8 May 2017 15:39:25 UTC+5:30, sarfaraz ahmed wrote: > > Hello Guys, > > After lot of struggle I understood there is no MOD_WSGI file available for > latest version of XAMP which is compiled in VC14. I am not sure how to > compile MOD_WSGI with VC 14 so I gave up >

Re: Django deployement Apache

2017-10-19 Thread sarfaraz ahmed
Thanks you all you friends.. this is been fixed. On Thursday, 31 August 2017 14:47:05 UTC+5:30, Antonis Christofides wrote: > > Did you run collectstatic? After you do so, the files will be copied to > /var/www/static_root or whatever your STATIC_ROOT points to. > > Some other notes: > >-

Re: hello everyone! I'm working on Django Framework. but

2017-10-19 Thread Erik Rull
Hi Andréas, Andréas Kühne wrote: > The main thing is that when you start runserver it continuesly checks for > changes in your .py files. So if you change a file, you get a reload. This > shouldn't be running on a production environment. > Another thing is that runserver also serves static

Re: Django 1.11 and PostgreSQL 10 compatibility

2017-10-19 Thread Carlos Augusto Machado
Hi, You can use 9.4, 9.5 and 10. Em qui, 19 de out de 2017 07:27, Edandweb escreveu: > Hi, > > I am developing a new application in Python and Django, for the database > we want to use the last version of PostgreSQL v10. > The django Documentation says in >

Re: hello everyone! I'm working on Django Framework. but when I run the script $ ./manage.py runserver or $./manage.py runserver 0.0.0.0:8000 it only work on my system. how to make it public? so that

2017-10-19 Thread Andréas Kühne
2017-10-19 9:37 GMT+02:00 Erik Rull : > Hello Andréas, > > Andréas Kühne wrote: > > 1. First of all, you shouldn't run django with runserver on a production > > system. runserver is just for development purposes, and doesn't do a lot > of > > optimization that you get

Re: Django 1.11 and PostgreSQL 10 compatibility

2017-10-19 Thread Antonis Christofides
Hello, It means exactly what it says: 9.3 or higher. "Higher" can mean 9.4, 9.5, 10, etc. Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-10-19 11:27, Edandweb wrote: > Hi, > > I am developing a new application in Python and Django, for the database we > want to

Re: Referencing objects that don't exist that will be created in forms

2017-10-19 Thread Chris Wedgwood
Hi All Ive overcome it by adding doing this: def __init__(self, *args, **kwargs): super(UniversityForm, self).__init__(*args, **kwargs) self.fields['name'].choices = University.objects.values_list('id', 'name') This makes sense. Don't reference objects that will be parsed before they

Django 1.11 and PostgreSQL 10 compatibility

2017-10-19 Thread Edandweb
Hi, I am developing a new application in Python, Django and for the database we'll use PostgreSQL. In the Django documentation, https://docs.djangoproject.com/en/1.11/ref/databases/#postgresql-notes : Django supports PostgreSQL 9.3 and higher. psycopg2 2.5.4 or

Re: hello everyone! I'm working on Django Framework. but when I run the script $ ./manage.py runserver or $./manage.py runserver 0.0.0.0:8000 it only work on my system. how to make it public? so that

2017-10-19 Thread Erik Rull
Hello Andréas, Andréas Kühne wrote: > 1. First of all, you shouldn't run django with runserver on a production > system. runserver is just for development purposes, and doesn't do a lot of > optimization that you get when running it "correctly". not a lot of optimizations - uh really? I run

Re: Django 1.5 custom User model error. "Manager isn't available; User has been swapped"

2017-10-19 Thread sarfaraz . a
hey, I am facing similar issue. You said here is solution I checked. .nothing related On Wednesday, November 28, 2012 at 1:37:39 PM UTC+5:30, bpetit wrote: > > Thanks for reply but this solutions doesn't seem to work. I've found a > solution that is explained here >

Introducing "Django Indonesia" Community

2017-10-19 Thread alzea arafat
Hi there! I'm Alzea from Indonesia. I would like to introduce Django Indonesia community. I built this local community of fans, developers and django users, in 2014. And now we have around 2.5k members in facebook, and hundred in Slack. It's still relatively small, but we still growing every

Django 1.11 and PostgreSQL 10 compatibility

2017-10-19 Thread Edandweb
Hi, I am developing a new application in Python and Django, for the database we want to use the last version of PostgreSQL v10. The django Documentation says in https://docs.djangoproject.com/en/1.11/ref/databases/#postgresql-notes: *Django supports PostgreSQL 9.3 and higher. psycopg2

Referencing objects that don't exist that will be created in forms

2017-10-19 Thread Chris Wedgwood
Hi I have the following scenario in my forms.py: UNIVERSITY_CHOICES = University.objects.values_list('id', 'name') class UniversityForm(forms.Form): name = forms.CharField(widget=forms.Select(attrs={"class": "selectpicker", "data-live-search": "true","title": "find

Re: Need help with deployment

2017-10-19 Thread sarfaraz ahmed
Yes, I moved to linux all working fine now. On Saturday, 13 May 2017 00:06:44 UTC+5:30, mohammed ferozkhan wrote: > > Hi > Problem will solved?? > If no ping me on what'sapp +91 8686962047 -- You received this message because you are subscribed to the Google Groups "Django users" group. To

“Manager isn't available; User has been swapped”

2017-10-19 Thread sarfaraz ahmed
Hello Friends, I am trying to extend user model to setup email as username. Everything works find when I create new user using django admin I get error “Manager isn't available; User has been swapped” when try to create user using signup view. There is very few articles on this error. Any

Re: AttributeError When Overwritting AUTH_USER_MODEL in Test Cases

2017-10-19 Thread sarfaraz ahmed
I am getting similar issue. No reply on your question. Please share the solution if you found On Monday, 8 February 2016 19:50:07 UTC+5:30, Aubrey Stark-Toller wrote: > > Hello, > > When I override the AUTH_USER_MODEL setting to "auth.User", when > AUTH_USER_MODEL in settings is not set to