This project has moved and is read-only. For the latest updates, please go here.

Django 1.5....

Dec 2, 2012 at 1:38 AM


I looked around for a bit for a direct answer but only found bits and pieces. I was wondering what would people recommend me doing in order to use PTVS with the beta of Django 1.5? Should I be creating the project outside of VS and import it or is there an easier way to specify Django versions when creating a new project from within VS at the new project creation wizard?



Dec 3, 2012 at 7:44 PM

This is a little bit rough right now.  What I would suggest creating it outside of VS and importing it, but the new project from existing code feature currently doesn't create Django projects.  So I'd suggest after using that to import the code I'd open the project by hand and make a couple of updates to it.  You should add:


<Import Project="$(VSToolsPath)\Python Tools\Microsoft.PythonTools.Django.targets" />

At the end right before the "</Project>" line, and then replace the 1st property group in the .pyproj file with:

    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <LaunchProvider>Django launcher</LaunchProvider>

That'll give you all of the normal Django project features.  I'll also open a work item for us to support creating projects with different Django versions.



Dec 3, 2012 at 7:44 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Dec 4, 2012 at 6:37 AM

Thanks! I will see if I can get it to work. Again thanks for your time and your efforts!