Re: Web based IDE for django

2016-08-15 Thread Jani Tiainen
Hi, Just for curiosity, can you point out any web based editor does what you're asking for, even not Python based? To me it sounds that you want to have some kind of (web based) wizard to generate most of the code for you. Since you feel repeating your way of workin, why not to write IDE you

Re: Web based IDE for django

2016-08-15 Thread Gary Roach
While I haven't used it Two Scoops recommends cookiecutter. My reading leads me to believe that it may be what you are looking for. Gary R. On 08/15/2016 02:44 PM, billyhu...@gmail.com wrote: Thanks for your advice. I have to say thats not what the question was. What you are saying is a hostin

New to Django

2016-08-15 Thread Wolf Painter
Hey everyone, I didn't see any posts (or google search) that could possibly answer my question, so I am here... I'm trying to create a way to launch vm's on a Xen or VMWare server using a website. I have the python file written on the Server and am currently creating a DJango app to manage ever

Migrations for forms fields

2016-08-15 Thread Pranjal Tale
Hello! I was writing my models with forms.Forms and after writing when i run "python manage.py makemigrations app_label" it shows the error as "app not deceted". And at at same time when i build some models with models.Model and when i run the same command so all the migrations get implemented.

Re: Advice on python version for new project

2016-08-15 Thread Rich Shepard
On Tue, 16 Aug 2016, Avraham Serour wrote: you should also create a virtualenv for the project Avraham, OK. Please point me to some docs for this. Regards, Rich

Re: Web based IDE for django

2016-08-15 Thread billyhun01
Thanks for your advice. I have to say thats not what the question was. What you are saying is a hosting environment. What I am asking is the development environment. Completely different. Looking for a browser based IDE that is much user friendly than having it shell based way of coding. On M

Re: Advice on python version for new project

2016-08-15 Thread Avraham Serour
you should also create a virtualenv for the project On Tue, Aug 16, 2016 at 12:07 AM, Rich Shepard wrote: > On Mon, 15 Aug 2016, Rich Shepard wrote: > > I'll have to learn how to get it to install in -3.5.2, too. >> > > Found the answer: pip3. > > Rich > -- You received this message because

Re: Advice on python version for new project

2016-08-15 Thread Rich Shepard
On Mon, 15 Aug 2016, Rich Shepard wrote: I'll have to learn how to get it to install in -3.5.2, too. Found the answer: pip3. Rich

Re: Advice on python version for new project

2016-08-15 Thread Rich Shepard
On Mon, 15 Aug 2016, Ari Davidow wrote: If you're doing a CRM app, many advantages to using Python 3 and not having to deal with 2's Unicode issues. Ari, This is for my use only. I've outgrown the tools I've been using for my consulting business and need to consolidate them in a single appl

Re: Advice on python version for new project

2016-08-15 Thread Rich Shepard
On Mon, 15 Aug 2016, Nick Santos wrote: I'd recommend Python 3 at this point unless you encounter a good, specific reason to use Python 2. Nick, I'll take your advice. I have both -2.7.5 and -3.5.2 installed. Using pip to install django puts it in only the 2.7.5/site/packages/ subdirectory.

Re: Web based IDE for django

2016-08-15 Thread Ari Davidow
I think you can get a lot of what you're looking for with PythonAnywhere's support for Django--https://www.pythonanywhere.com/ . try the free version and see if that moves you in the right direction? ari On Mon, Aug 15, 2016 at 4:47 PM, wrote: > New in django so here is the question: Is there a

Re: Advice on python version for new project

2016-08-15 Thread Ari Davidow
If you're doing a CRM app, many advantages to using Python 3 and not having to deal with 2's Unicode issues. Names do not respect a lack of Unicode, and you want people to be able to cut and paste and/or import names as people want to spell them. On Mon, Aug 15, 2016 at 3:37 PM, Rich Shepard wrot

Web based IDE for django

2016-08-15 Thread billyhun01
New in django so here is the question: Is there a web based IDE for django where the environments are set up and all we focus on the creating models, view and control? It seems most of my time is spend creating url, import this, import that, put middleware, 90% of the time is spend worrying abou

Re: Advice on python version for new project

2016-08-15 Thread Nick Santos
I'd recommend Python 3 at this point unless you encounter a good, specific reason to use Python 2. If you use the six module, it's really easy to write code that can be used for both versions without writing conditionals everywhere. If you then encounter something th

Advice on python version for new project

2016-08-15 Thread Rich Shepard
The django web site suggests that new projects use python3 unless required dependencies are not yet available for that version. I've no idea what python dependencies I'll need for this job. What I want to do is convert an abandoned php application (last upgraded a decade ago) to django. The a

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
We can continue the discussion on the pull request. Also, you can use the #django-dev IRC channel to get more immediate feedback. On Monday, August 15, 2016 at 2:50:32 PM UTC-4, premdjango wrote: > > My pull requests failed - https://github.com/django/django/pull/7094 > > Looks like the test is r

Re: Adding new models to test Django unit test case

2016-08-15 Thread premdjango
My pull requests failed - https://github.com/django/django/pull/7094 Looks like the test is running by default against sqllite. How do I run it against the postgres? On Monday, August 15, 2016 at 1:48:48 PM UTC-4, premdjango wrote: > > It worked..thanks. > > On Monday, August 15, 2016 at 1:12:52

Re: Adding new models to test Django unit test case

2016-08-15 Thread premdjango
It worked..thanks. On Monday, August 15, 2016 at 1:12:52 PM UTC-4, Tim Graham wrote: > > You'll need to modify the migrations manually. Take a look at a previous > commit on the migrations files for an example. > > On Monday, August 15, 2016 at 1:00:42 PM UTC-4, premdjango wrote: >> >> Thanks. >>

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
You'll need to modify the migrations manually. Take a look at a previous commit on the migrations files for an example. On Monday, August 15, 2016 at 1:00:42 PM UTC-4, premdjango wrote: > > Thanks. > How do I run the migrations? > > I tried python manage.py makemigrations but dont see the manage.

Re: Adding new models to test Django unit test case

2016-08-15 Thread premdjango
Thanks. How do I run the migrations? I tried python manage.py makemigrations but dont see the manage.py module anywhere. On Monday, August 15, 2016 at 7:18:33 AM UTC-4, Tim Graham wrote: > > Migrations will run automatically but you need to add the models to the > migrations in tests/postgres_t

Using the Django ORM in a long-running worker process

2016-08-15 Thread Daniel Tao
Hi folks, My team has built a service comprising 3 main parts, a web application and 2 long-running worker processes that process events from a message exchange. All of these components interact with the same database and use the same underlying Django "app" for ORM models (i.e. the 2 worker p

Re: friends dont let django suck

2016-08-15 Thread ludovic coues
This is the doc you are looking for https://docs.djangoproject.com/en/1.10/ref/csrf/#ajax 2016-08-15 12:42 GMT+02:00 Saeon Tao : > LoL, thank you everyone! please forgive, i was just having a moment with > django... you understand, im a real makebelieve hotshot when it comes to > php, but now with

Re: Strange bug with form errors

2016-08-15 Thread M Hashmi
Ok great. Take care. On Mon, Aug 15, 2016 at 3:10 AM, Nestor Burma wrote: > Oh I just have found the trick ! > It comes from a django bug in some earlier version of django 1.9. in > FormeMixinBase.form_invalid() > > I had: > def form_invalid(self, form): > return self.render_to_resp

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
Migrations will run automatically but you need to add the models to the migrations in tests/postgres_tests/migrations. On Sunday, August 14, 2016 at 10:53:45 PM UTC-4, premdjango wrote: > > I'm implementing a fix for a ticket-26819 and need to add new models to > test it. > > The new models were

Re: friends dont let django suck

2016-08-15 Thread Saeon Tao
LoL, thank you everyone! please forgive, i was just having a moment with django... you understand, im a real makebelieve hotshot when it comes to php, but now with my freshly inhereted django app, im a moron again... :p I really been starting at the bottom here, trying to avoid raw sql because

Re: Strange bug with form errors

2016-08-15 Thread Nestor Burma
Oh I just have found the trick ! It comes from a django bug in some earlier version of django 1.9. in FormeMixinBase.form_invalid()   I had:     def form_invalid(self, form):     return self.render_to_response(self.get_context_data())   in place of:     def form_invalid(self, form):  

Re: friends dont let django suck

2016-08-15 Thread ludovic coues
Or it is just you ;) Why don't you use a less baity title and tell us what is your problem. What are you trying to do, what have you tried, what is the result, what does the models look like... Sometimes, all you need is someone new looking at you code. 2016-08-15 11:03 GMT+02:00 Daniele Procida

Re: how to integrate django framework in android app ????

2016-08-15 Thread M Hashmi
If you need to expose your django application for other platforms then you must be looking for Django RestFramework. Read the docs and you will understand. M On Sun, Aug 14, 2016 at 1:30 AM, ludovic coues wrote: > Could you detail a bit more what you are trying to achieve ? > > What do you mean

Re: friends dont let django suck

2016-08-15 Thread Daniele Procida
On Mon, Aug 15, 2016, Saeon Tao wrote: >Arrive at this marvel of a website and input any normal, ordinary SQL query >and click >enter >The SQL query then goes to django head office mainframe, where their very >special computer can figure out a deeply complicated "django queryset" to >match the

Re: Strange bug with form errors

2016-08-15 Thread M Hashmi
Can you paste the full traceback from production server? On Sun, Aug 14, 2016 at 11:53 PM, Nestor Burma wrote: > I have a very strange bug with fom errors. *On my development site, my > code works fine*. But on my production site (apache + mod-wgsi + > posgresql), the form errors I defined in is

Re: friends dont let django suck

2016-08-15 Thread Omar Abou Mrad
I'm not sure if I understood or took the bait, but if you're uncomfortable with the ORM then 1) Django may not be what you're looking for 2) You could try having your way raw queries. with https://docs.djangoproject.com/en/1.10/topics/db/sql/#performing-raw-queries Good luck. On Mon, Aug 15, 201

Strange bug with form errors

2016-08-15 Thread Nestor Burma
I have a very strange bug with fom errors. On my development site, my code works fine. But on my production site (apache + mod-wgsi + posgresql), the form errors I defined in is_valid() method of my ModelForm (in a generic CreateView) are not product by the template. Have you already seen such a th

friends dont let django suck

2016-08-15 Thread Saeon Tao
PLEASE can some really amazingly intelligent cyborg invent a *django* website that has one input on a single page. Arrive at this marvel of a website and input any normal, ordinary SQL query and click >enterhttps://groups.google.com/group/django-users. To view this discussion on the web visit h

Re: Django 1.10 How to Take form Inputs (ie field one + field two = field three) and auto update before submitting the form.

2016-08-15 Thread Paul Kudla
ludovic coues : If you can please contact me directly with email p...@scom.ca would like to discuss further, am willing to pay for programming time to sort out some basic issues and get some working examples. have been programming for 25 years, know what i need to accomplish and want to use dj