How can i collect profile information (E.g.: user_id and name..etc.) from database.

2015-03-13 Thread 'Yip Terence' via Django users
DearAll, How can i collect profile information (E.g.: user_id and name..etc.) from MySQL database? Thanks and Regards, Terence -- 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,

Re: Django phonegap CORS

2015-03-13 Thread Filipe Ximenes
Alright, I think I got what you want now. The first solution that comes to mind is to perform everything in the browser. That way, you will first perform "window.open()" and then show a "login view" from django server. I don't have any experience with Phonegap, but it seems that this can also hel

Re: django beginner

2015-03-13 Thread Luis Zárate
Your python configuration is ok. so I guest you have someone of this problem. - Your work path has spaces and python confuse with them. - Your system mimetype for .py use notepad++ for open it. I don't know if this solve your issue but I think that check this prevent you a headache I test doing

Re: Django phonegap CORS

2015-03-13 Thread Florian Auer
Hello Filipe Thank you for the reply. Well the $http object was till now unknown for me.. there we can see how poor my AngularJS knowledge is till now. But as far as i understood the documentation i am not able to bring up a browser window by this that takes over the control of the app. The

Re: How to make responsinator.com working with Django?

2015-03-13 Thread luis zarate
I have this problem with my site, if I put my public site http://www.solvosoft.com in responsinator.com all iframes are empty. I guest it's a security configuration to prevent Clickjacking protection. A proof of concept is writting a simple html page with Iframe. http://www.solvosoft.com";> re

Re: Existing database - new project

2015-03-13 Thread Robert Daniels
thanks for everyone's input. I'll run parallel implementations and see which one works best for the long haul. -- 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: django beginner

2015-03-13 Thread george . varaboutis
the verson is 1.7.6 why? -- 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 to this group, send email to djan

Re: django beginner

2015-03-13 Thread luis zarate
what is the output of django-admin --version ? Instructions: 1) open cmd 2) change your current directory to your work directory 3) run django-admi --version 4) copy and paste the output here. The output will be like "1.7.2" 2015-03-13 11:47 GMT-06:00 : > ok i put the folder that the django-a

Re: django beginner

2015-03-13 Thread george . varaboutis
ok i put the folder that the django-admin file is in at the variables path of windows i hope that deals with later problems with files -- 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

Re: django beginner

2015-03-13 Thread george . varaboutis
i have django installed correctly i checked witht he version test my python folder is on c:\ #!c:\users\radcliff\appdata\local\enthought\canopy32\user\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line() this is what is in

Re: django beginner

2015-03-13 Thread Ilya Kazakevich
django-admin creates infrastructure required for your project, and there should be more than 3 files. On *nix systems django-admin is py script with shebang, but due to windows command processor limitations (cmd) on windows there is executable file which actually calls django-admin. So, you sh

Re: django beginner

2015-03-13 Thread george . varaboutis
Τη Παρασκευή, 13 Μαρτίου 2015 - 6:58:55 μ.μ. UTC+2, ο χρήστης george.v...@gmail.com έγραψε: > > i am at the start > i use windows7, python 2.7.6 and django 1.7.6 > > after installation i tried to run "django-admin startproject mysite" > and it only opened notepad++ the file django-admin.py > >

django beginner

2015-03-13 Thread george . varaboutis
i am at the start i use windows7, python 2.7.6 and django 1.7.6 after installation i tried to run "django-admin startproject mysite" and it only opened notepad++ the file django-admin.py i then went in the directory that it was found and coppied the three files in the folder i want my project t

Django beggining problems

2015-03-13 Thread george . varaboutis
i am following the tutorial right now... I use windows 7 python 2.7.6 and django 1.7.6 when i run "django-admin startproject mysite" it opens a file on notepad++ called django-admin with some code in it #!c:\users\radcliff\appdata\local\enthought\canopy32\user\scripts\python.exe f

Re: Django 1.8 post_save without recursion

2015-03-13 Thread Simon Charette
I don't think there's best a way of doing it but in your specific case the following should do: @receiver(post_save, sender=Person) def do(instance, update_fields, *args, **kwargs): if update_fields == {'ok'}: return instance.ok = True instance.save(update_fields={'ok'}) Simo

Re: Django phonegap CORS

2015-03-13 Thread Filipe Ximenes
You should not be using window.open() to perform requests in Angular. Instead, use Angular $http service for this: https://docs.angularjs.org/api/ng/service/$http With $http you'll be able to send requests with parameters, headers and any configuration you need. On Fri, Mar 13, 2015 at 8:55 AM, F

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread john
Have you issued the command to create the tables. python manage.py makemigrations python manage.py migrate The above will create what ever tables you have in the models. The actual data that something else? Johnf On 03/13/2015 03:29 AM, Sabine Maennel wrote: I just switched from Sqlite to post

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread john
Or just keep the database and create a new role with admin (I assume you need that) priv. Johnf On 03/13/2015 04:31 AM, Matthias Müller wrote: I do agree to John. Check out the commands createuser --help and createdb --help Matthias 2015-03-13 12:09 GMT+01:00 John

Re: Django phonegap CORS

2015-03-13 Thread Florian Auer
Thanks to Filipe, the asynchronous request to django is working correctly. A request to the endpoint url results in a JSON response with the token in it. But now I have another gap in my "logic". Inside this angular app the django site is requested via a call like this, to takeover control from

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread Matthias Müller
I do agree to John. Check out the commands createuser --help and createdb --help Matthias 2015-03-13 12:09 GMT+01:00 John : > Sabine, > > It is a really Bad Idea to use the postgres user and database for your > data. Create a new user and database and use that instead. > > John > > > On

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread John
Sabine, It is a really Bad Idea to use the postgres user and database for your data. Create a new user and database and use that instead. John On 13/03/15 10:29, Sabine Maennel wrote: > I just switched from Sqlite to postgres. Everything is working except > that when I open PgAdmin III all table

Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-13 Thread Sabine Maennel
I just switched from Sqlite to postgres. Everything is working except that when I open PgAdmin III all tables are still empty. I really wonder where are my data? In my settings file I have: DATABASES = { 'default': { #'ENGINE': 'django.db.backends.sqlite3', #'NAME': os.path