Re: How to: Django development and debugging

2016-10-25 Thread Luis Zárate
2016-10-23 17:08 GMT-06:00 Don Thilaka Jayamanne :

> @Luis Zárate
> >I dislike VS as IDE but
> Please remember, this is Visual Studio Code (cross platform, open source,
> free) and not to be confused with Visual Sutdio IDE (full blown IDE runs
> only on Windows)
> Visual Studio Code 
>

Sorry I was confused, I was thinking in Microsoft Visual Studio (MVS).

I didn't test VSC, but I will.  I am looking for a IDE because Aptana is
not updated for a while, so I am having compatibility issues.

33 Mb size it's like i want :) great for Debian installer.

It's any relation with MVS? because you are using the same icon and the
same colors.


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyO6MExAfA76_du78BABqd2%3DjZs-GmOyeL0SKiM6QJfq_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Don Thilaka Jayamanne
Hi ,
This Python Extension 
 too 
supports the features you have mentioned.
The difference is:
- Visual Studio Code is more of a lightweight and cross platform 
alternative (completely open source - MIT licensed).

Here are some of the features:

   - Linting (Prospector , Pylint 
   , pycodestyle 
   /Pep8, Flake8 
   , pydocstyle 
    with config files and plugins)
   - Intellisense (autocompletion)
   - Scientific tools (Jupyter/IPython)
   - Auto indenting
   - Code formatting (autopep8 , yapf 
   , with config files)
   - Code refactoring (Rename 
   , 
Extract 
   Variable 
   

   , Extract Method 
   

   , Sort Imports 
   
   )
   - Viewing references, code navigation, view signature
   - Excellent debugging support (remote debugging, mutliple threads, 
   django, flask, docker)
   - Unit testing, including debugging (unittest 
   , pytest 
   , nosetests 
   , with config files)
   - Execute file or code in a python terminal
   - Local help file (offline documentation)
   - Snippets


On Saturday, 22 October 2016 05:56:43 UTC+11, Muizudeen Kusimo wrote:
>
> Hello Folks,
>
> PyCharm makes debugging Django (and other Python) applications very easy. 
> Some of the features which are very helpful include:
>
>1. Ability to choose specific Python Interpreter you want to run the 
>code base against. Useful if you use virtualenv and need to test your code 
>in different Python versions
>2. Standard debugging tools - Step Into, Step Over, Step Out, Watches
>3. Support for debugging other Python libraries tied to your Django 
>application e.g. Lettuce BDD tests, Unit Tests e.t.c
>
> It's definitely worth a try as you can get a lot from the Community Edition
>
> Regards
>
> On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, Don Thilaka Jayamanne 
> wrote:
>>
>> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
>> https://github.com/DonJayamanne/pythonVSCode). Basically it provides 
>> intellisense, code navigation, debugging (django, multi threads, etc), data 
>> science and the like.
>>
>> When it comes to debugging django applications, today the extension 
>> disables (doesn't support) live reloading of django applications.
>>
>> I'm thinking of having a look at this particular area. Before I do so, 
>> I'd like to get an idea of how developers actually develop and debug django 
>> applications.
>>
>> Most of the people i've spoken to say they develop as follows:
>> - Fire up the django application with live reload 
>> - Start codeing
>> - Test in the browser
>> - Very rarely would they debug an application
>> - i.e. majority of the time they don't launch the application in debug 
>> mode 
>>
>> How do you work on django applications?
>>
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9c72cadd-3c25-4e41-bd5a-92fadab081fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Don Thilaka Jayamanne
@Luis Zárate 
>I dislike VS as IDE but
Please remember, this is Visual Studio Code (cross platform, open source, 
free) and not to be confused with Visual Sutdio IDE (full blown IDE runs 
only on Windows)
Visual Studio Code 

>great if you want to support Django there
Django is supported today (including template debugging). Right now i'm 
looking at the need for debugging with auto-reload.
Check here for Python Extension and Features 


On Monday, 24 October 2016 03:40:35 UTC+11, luisza14 wrote:
>
> I rarelly debug code with django, with external utility, just trace stack 
> when errors appears, buy when I need it I use pydev over Aptana,  it has 
> heap monitor, breakpoints, step by step run and other debugger functions.
>
> One important thing is that I need to say to pydev that  run django with 
> --no-autoreload parameter, so then works well because when I am debugging I 
> am not coding and I can start or stop the server when I want.
>
> I always run django in external terminal when I am coding, I really like 
> the autoreload, I think it's better if the IDE can reload, but I really 
> hate when Aptana is configured wrong and server never die, because I need 
> to user $ killall python (or some like that) to stop django. 
>
> I dislike VS as IDE but, great if you want to support Django there. 
>
> El viernes, 21 de octubre de 2016, Muizudeen Kusimo  > escribió:
> > Hello Folks,
> > PyCharm makes debugging Django (and other Python) applications very 
> easy. Some of the features which are very helpful include:
> >
> > Ability to choose specific Python Interpreter you want to run the code 
> base against. Useful if you use virtualenv and need to test your code in 
> different Python versions
> > Standard debugging tools - Step Into, Step Over, Step Out, Watches
> > Support for debugging other Python libraries tied to your Django 
> application e.g. Lettuce BDD tests, Unit Tests e.t.c
> >
> > It's definitely worth a try as you can get a lot from the Community 
> Edition
> > Regards
> > On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, Don Thilaka Jayamanne 
> wrote:
> >>
> >> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
> https://github.com/DonJayamanne/pythonVSCode). Basically it provides 
> intellisense, code navigation, debugging (django, multi threads, etc), data 
> science and the like.
> >> When it comes to debugging django applications, today the extension 
> disables (doesn't support) live reloading of django applications.
> >> I'm thinking of having a look at this particular area. Before I do so, 
> I'd like to get an idea of how developers actually develop and debug django 
> applications.
> >> Most of the people i've spoken to say they develop as follows:
> >> - Fire up the django application with live reload 
> >> - Start codeing
> >> - Test in the browser
> >> - Very rarely would they debug an application
> >> - i.e. majority of the time they don't launch the application in debug 
> mode 
> >> How do you work on django applications?
> >
> > --
> > 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...@googlegroups.com .
> > To post to this group, send email to django...@googlegroups.com 
> .
> > Visit this group at https://groups.google.com/group/django-users.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/d5c69cfc-7bec-4df9-9112-3b0f74c0ab5d%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
> > 
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/abd6e785-d6f3-42f7-a7ad-436cb98aa223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Don Thilaka Jayamanne
@Derek, yes VS Code Editor is available on Linux platforms.
Have a look here:
https://code.visualstudio.com/Download

On Monday, 24 October 2016 00:20:26 UTC+11, Derek wrote:
>
> Is VS Code Editor available on Linux platforms?
>
> On Friday, 21 October 2016 02:30:45 UTC+2, Don Thilaka Jayamanne wrote:
>>
>> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
>> https://github.com/DonJayamanne/pythonVSCode). Basically it provides 
>> intellisense, code navigation, debugging (django, multi threads, etc), data 
>> science and the like.
>>
>> When it comes to debugging django applications, today the extension 
>> disables (doesn't support) live reloading of django applications.
>>
>> I'm thinking of having a look at this particular area. Before I do so, 
>> I'd like to get an idea of how developers actually develop and debug django 
>> applications.
>>
>> Most of the people i've spoken to say they develop as follows:
>> - Fire up the django application with live reload 
>> - Start codeing
>> - Test in the browser
>> - Very rarely would they debug an application
>> - i.e. majority of the time they don't launch the application in debug 
>> mode 
>>
>> How do you work on django applications?
>>
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/92b6f9ab-ed4d-412a-9abf-f28c1f04ce1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Don Thilaka Jayamanne
@Luis Zárate
>I dislike VS as IDE but
Any particular reason for this?

>great if you want to support Django there
Django is supported today (including template debugging). Right now i'm
looking at the need for debugging with auto-reload.

On Mon, Oct 24, 2016 at 3:38 AM, Luis Zárate  wrote:

> I rarelly debug code with django, with external utility, just trace stack
> when errors appears, buy when I need it I use pydev over Aptana,  it has
> heap monitor, breakpoints, step by step run and other debugger functions.
>
> One important thing is that I need to say to pydev that  run django with
> --no-autoreload parameter, so then works well because when I am debugging I
> am not coding and I can start or stop the server when I want.
>
> I always run django in external terminal when I am coding, I really like
> the autoreload, I think it's better if the IDE can reload, but I really
> hate when Aptana is configured wrong and server never die, because I need
> to user $ killall python (or some like that) to stop django.
>
> I dislike VS as IDE but, great if you want to support Django there.
>
> El viernes, 21 de octubre de 2016, Muizudeen Kusimo 
> escribió:
> > Hello Folks,
> > PyCharm makes debugging Django (and other Python) applications very
> easy. Some of the features which are very helpful include:
> >
> > Ability to choose specific Python Interpreter you want to run the code
> base against. Useful if you use virtualenv and need to test your code in
> different Python versions
> > Standard debugging tools - Step Into, Step Over, Step Out, Watches
> > Support for debugging other Python libraries tied to your Django
> application e.g. Lettuce BDD tests, Unit Tests e.t.c
> >
> > It's definitely worth a try as you can get a lot from the Community
> Edition
> > Regards
> > On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, Don Thilaka Jayamanne
> wrote:
> >>
> >> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
> https://github.com/DonJayamanne/pythonVSCode). Basically it provides
> intellisense, code navigation, debugging (django, multi threads, etc), data
> science and the like.
> >> When it comes to debugging django applications, today the extension
> disables (doesn't support) live reloading of django applications.
> >> I'm thinking of having a look at this particular area. Before I do so,
> I'd like to get an idea of how developers actually develop and debug django
> applications.
> >> Most of the people i've spoken to say they develop as follows:
> >> - Fire up the django application with live reload
> >> - Start codeing
> >> - Test in the browser
> >> - Very rarely would they debug an application
> >> - i.e. majority of the time they don't launch the application in debug
> mode
> >> How do you work on django applications?
> >
> > --
> > 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 django-users@googlegroups.com.
> > Visit this group at https://groups.google.com/group/django-users.
> > To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-users/d5c69cfc-7bec-4df9-9112-3b0f74c0ab5d%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/vEKR34Oo08g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAG%2B5VyNKobt0SZ49pvbbAJWptHjw7AL
> SQ2kg9sRAR8atgfmOdA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-XEHp4zxPa0jYqLHs6BpREJtuy9o3JAQ1KJedUiNcexk3QoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Don Thilaka Jayamanne
@Derek, yes VS Code Editor is available on Linux platforms.
Have a look here:
https://code.visualstudio.com/Download

On Mon, Oct 24, 2016 at 12:20 AM, Derek  wrote:

> Is VS Code Editor available on Linux platforms?
>
> On Friday, 21 October 2016 02:30:45 UTC+2, Don Thilaka Jayamanne wrote:
>>
>> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
>> https://github.com/DonJayamanne/pythonVSCode). Basically it provides
>> intellisense, code navigation, debugging (django, multi threads, etc), data
>> science and the like.
>>
>> When it comes to debugging django applications, today the extension
>> disables (doesn't support) live reloading of django applications.
>>
>> I'm thinking of having a look at this particular area. Before I do so,
>> I'd like to get an idea of how developers actually develop and debug django
>> applications.
>>
>> Most of the people i've spoken to say they develop as follows:
>> - Fire up the django application with live reload
>> - Start codeing
>> - Test in the browser
>> - Very rarely would they debug an application
>> - i.e. majority of the time they don't launch the application in debug
>> mode
>>
>> How do you work on django applications?
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/vEKR34Oo08g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/958b1686-d0b1-4564-b2f6-3e4dcadda72e%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK-XEHrRBGUmYx3uuvFzkfM2EUmA8xT-_FRefTvdpA15_xJnrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Luis Zárate
I rarelly debug code with django, with external utility, just trace stack
when errors appears, buy when I need it I use pydev over Aptana,  it has
heap monitor, breakpoints, step by step run and other debugger functions.

One important thing is that I need to say to pydev that  run django with
--no-autoreload parameter, so then works well because when I am debugging I
am not coding and I can start or stop the server when I want.

I always run django in external terminal when I am coding, I really like
the autoreload, I think it's better if the IDE can reload, but I really
hate when Aptana is configured wrong and server never die, because I need
to user $ killall python (or some like that) to stop django.

I dislike VS as IDE but, great if you want to support Django there.

El viernes, 21 de octubre de 2016, Muizudeen Kusimo 
escribió:
> Hello Folks,
> PyCharm makes debugging Django (and other Python) applications very easy.
Some of the features which are very helpful include:
>
> Ability to choose specific Python Interpreter you want to run the code
base against. Useful if you use virtualenv and need to test your code in
different Python versions
> Standard debugging tools - Step Into, Step Over, Step Out, Watches
> Support for debugging other Python libraries tied to your Django
application e.g. Lettuce BDD tests, Unit Tests e.t.c
>
> It's definitely worth a try as you can get a lot from the Community
Edition
> Regards
> On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, Don Thilaka Jayamanne
wrote:
>>
>> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
https://github.com/DonJayamanne/pythonVSCode). Basically it provides
intellisense, code navigation, debugging (django, multi threads, etc), data
science and the like.
>> When it comes to debugging django applications, today the extension
disables (doesn't support) live reloading of django applications.
>> I'm thinking of having a look at this particular area. Before I do so,
I'd like to get an idea of how developers actually develop and debug django
applications.
>> Most of the people i've spoken to say they develop as follows:
>> - Fire up the django application with live reload
>> - Start codeing
>> - Test in the browser
>> - Very rarely would they debug an application
>> - i.e. majority of the time they don't launch the application in debug
mode
>> How do you work on django applications?
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
msgid/django-users/d5c69cfc-7bec-4df9-9112-3b0f74c0ab5d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyNKobt0SZ49pvbbAJWptHjw7ALSQ2kg9sRAR8atgfmOdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Derek
Is VS Code Editor available on Linux platforms?

On Friday, 21 October 2016 02:30:45 UTC+2, Don Thilaka Jayamanne wrote:
>
> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
> https://github.com/DonJayamanne/pythonVSCode). Basically it provides 
> intellisense, code navigation, debugging (django, multi threads, etc), data 
> science and the like.
>
> When it comes to debugging django applications, today the extension 
> disables (doesn't support) live reloading of django applications.
>
> I'm thinking of having a look at this particular area. Before I do so, I'd 
> like to get an idea of how developers actually develop and debug django 
> applications.
>
> Most of the people i've spoken to say they develop as follows:
> - Fire up the django application with live reload 
> - Start codeing
> - Test in the browser
> - Very rarely would they debug an application
> - i.e. majority of the time they don't launch the application in debug 
> mode 
>
> How do you work on django applications?
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/958b1686-d0b1-4564-b2f6-3e4dcadda72e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-23 Thread Don Thilaka Jayamanne
The debugger in python extension for VS Code is comparable to PyCharms 
debugger. In fact it supports all of the features you have mentioned.
Please feel free to try it out:
- https://marketplace.visualstudio.com/items?itemName=donjayamanne.python
- https://github.com/DonJayamanne/pythonVSCode/wiki/Debugging

On Saturday, 22 October 2016 05:56:43 UTC+11, Muizudeen Kusimo wrote:
>
> Hello Folks,
>
> PyCharm makes debugging Django (and other Python) applications very easy. 
> Some of the features which are very helpful include:
>
>1. Ability to choose specific Python Interpreter you want to run the 
>code base against. Useful if you use virtualenv and need to test your code 
>in different Python versions
>2. Standard debugging tools - Step Into, Step Over, Step Out, Watches
>3. Support for debugging other Python libraries tied to your Django 
>application e.g. Lettuce BDD tests, Unit Tests e.t.c
>
> It's definitely worth a try as you can get a lot from the Community Edition
>
> Regards
>
> On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, Don Thilaka Jayamanne 
> wrote:
>>
>> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
>> https://github.com/DonJayamanne/pythonVSCode). Basically it provides 
>> intellisense, code navigation, debugging (django, multi threads, etc), data 
>> science and the like.
>>
>> When it comes to debugging django applications, today the extension 
>> disables (doesn't support) live reloading of django applications.
>>
>> I'm thinking of having a look at this particular area. Before I do so, 
>> I'd like to get an idea of how developers actually develop and debug django 
>> applications.
>>
>> Most of the people i've spoken to say they develop as follows:
>> - Fire up the django application with live reload 
>> - Start codeing
>> - Test in the browser
>> - Very rarely would they debug an application
>> - i.e. majority of the time they don't launch the application in debug 
>> mode 
>>
>> How do you work on django applications?
>>
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d9e96f94-95c0-428b-b468-54d63b9bedce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-22 Thread Mike Dewhirst
On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, Don Thilaka Jayamanne 
wrote:


Hi Everyone, I'm the author of a Python plugin for the VS Code
editor (https://github.com/DonJayamanne/pythonVSCode
). Basically it
provides intellisense, code navigation, debugging (django, multi
threads, etc), data science and the like.

When it comes to debugging django applications, today the
extension disables (doesn't support) live reloading of django
applications.



I take this to mean reload the dev server when code changes. I think 
that is critical for development.
Also critical for me is the debug page delivered when settings.DEBUG is 
True. I suppose that is independent of the IDE.




I'm thinking of having a look at this particular area. Before I do
so, I'd like to get an idea of how developers actually develop and
debug django applications.

Most of the people i've spoken to say they develop as follows:
- Fire up the django application with live reloadÂ



No. I write a unit test (or tests) then do manage.py test
Assuming the tests fail I start coding


- Start codeing



When the unit tests all pass


- Test in the browser


Yes


- Very rarely would they debug an application



Very rarely necessary to step through code looking at variables etc to 
discover why something isn't working. My bugs are pretty obvious. I have 
stepped through code but usually to see what the framework is doing for 
one reason or another.



- i.e. majority of the time they don't launch the application in
debug modeÂ



Always in development

Very rarely in staging and then only temporarily to see what is going 
wrong on the non-dev platform.


Never in production (same platform as staging)



How do you work on django applications?



* Plain text editor with Python syntax highlighting to write code
* Scripted launching of manage.py with different backends, settings, 
databases as required

* Commit to my own branch in svn
* Merge to trunk
* Run unit tests
* Repeat until all unit tests are working
* Commit trunk in svn
* Svn commences a Buildbot deployment on staging which succeeds if the 
tests all work

* Occasionally create a production tag from trunk in svn
* Manually edit a script on production to deploy the tag

HTH

Mike

--
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/647b6a73-2271-8e04-2400-0412ce855268%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-21 Thread Muizudeen Kusimo
Hello Folks,

PyCharm makes debugging Django (and other Python) applications very easy. 
Some of the features which are very helpful include:

   1. Ability to choose specific Python Interpreter you want to run the 
   code base against. Useful if you use virtualenv and need to test your code 
   in different Python versions
   2. Standard debugging tools - Step Into, Step Over, Step Out, Watches
   3. Support for debugging other Python libraries tied to your Django 
   application e.g. Lettuce BDD tests, Unit Tests e.t.c

It's definitely worth a try as you can get a lot from the Community Edition

Regards

On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, Don Thilaka Jayamanne 
wrote:
>
> Hi Everyone, I'm the author of a Python plugin for the VS Code editor (
> https://github.com/DonJayamanne/pythonVSCode). Basically it provides 
> intellisense, code navigation, debugging (django, multi threads, etc), data 
> science and the like.
>
> When it comes to debugging django applications, today the extension 
> disables (doesn't support) live reloading of django applications.
>
> I'm thinking of having a look at this particular area. Before I do so, I'd 
> like to get an idea of how developers actually develop and debug django 
> applications.
>
> Most of the people i've spoken to say they develop as follows:
> - Fire up the django application with live reload 
> - Start codeing
> - Test in the browser
> - Very rarely would they debug an application
> - i.e. majority of the time they don't launch the application in debug 
> mode 
>
> How do you work on django applications?
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d5c69cfc-7bec-4df9-9112-3b0f74c0ab5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to: Django development and debugging

2016-10-20 Thread Antonis Christofides
> - Very rarely would they debug an application
> - i.e. majority of the time they don't launch the application in debug mode 

By "debug mode" I guess you mean stepping into the code, stopping at
breakpoints, etc. I wouldn't say I do it rarely, I do it quite often. I add
"import ipdb; ipdb.set_trace()" in the code, at the place I want it to stop, and
then I can step and so on. It sucks when you compare it to great debuggers (I
have experience in Delphi and I'm missing the debugger much when I program in
Python), but it's better than nothing. I've heard PyCharm's decent in that, but
I haven't tried it (yet).

Antonis Christofides
http://djangodeployment.com

On 2016-10-21 00:55, Don Thilaka Jayamanne wrote:
> Hi Everyone, I'm the author of a Python plugin for the VS Code editor
> (https://github.com/DonJayamanne/pythonVSCode). Basically it provides
> intellisense, code navigation, debugging (django, multi threads, etc), data
> science and the like.
>
> When it comes to debugging django applications, today the extension disables
> (doesn't support) live reloading of django applications.
>
> I'm thinking of having a look at this particular area. Before I do so, I'd
> like to get an idea of how developers actually develop and debug django
> applications.
>
> Most of the people i've spoken to say they develop as follows:
> - Fire up the django application with live reload 
> - Start codeing
> - Test in the browser
> - Very rarely would they debug an application
> - i.e. majority of the time they don't launch the application in debug mode 
>
> How do you work on django applications?
> -- 
> 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 django-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/249e-3721-40a6-a351-99eb33ae1f77%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1084de00-5e8a-f83e-c32c-9de623a44468%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


How to: Django development and debugging

2016-10-20 Thread Don Thilaka Jayamanne
Hi Everyone, I'm the author of a Python plugin for the VS Code editor 
(https://github.com/DonJayamanne/pythonVSCode). Basically it provides 
intellisense, code navigation, debugging (django, multi threads, etc), data 
science and the like.

When it comes to debugging django applications, today the extension 
disables (doesn't support) live reloading of django applications.

I'm thinking of having a look at this particular area. Before I do so, I'd 
like to get an idea of how developers actually develop and debug django 
applications.

Most of the people i've spoken to say they develop as follows:
- Fire up the django application with live reload 
- Start codeing
- Test in the browser
- Very rarely would they debug an application
- i.e. majority of the time they don't launch the application in debug mode 

How do you work on django applications?

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/249e-3721-40a6-a351-99eb33ae1f77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.