Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105234 > unrolled thread

creating multiple python Django projects in Windows environment

Started byjogaserbia <ivanjankovic@live.ca>
First post2016-03-18 12:04 -0700
Last post2016-03-21 17:24 -0700
Articles 4 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  creating multiple python Django projects in Windows environment jogaserbia <ivanjankovic@live.ca> - 2016-03-18 12:04 -0700
    Re: creating multiple python Django projects in Windows environment jogaserbia <ivanjankovic777777@gmail.com> - 2016-03-21 14:02 -0700
      Re: creating multiple python Django projects in Windows environment Chris Angelico <rosuav@gmail.com> - 2016-03-22 10:07 +1100
        Re: creating multiple python Django projects in Windows environment ivan77 <ivanjankovic777777@gmail.com> - 2016-03-21 17:24 -0700

#105234 — creating multiple python Django projects in Windows environment

Fromjogaserbia <ivanjankovic@live.ca>
Date2016-03-18 12:04 -0700
Subjectcreating multiple python Django projects in Windows environment
Message-ID<414504a3-4439-413d-97f4-852563770003@googlegroups.com>
Hello,

At work, I have a windows environment.  

I have created applications on my linux ubuntu machine at home that I would like to use for work purposes. 

For example, I have:

- a Django project that takes inputs from users and creates pdfs
- a Django project that tracks various company related information
- a python project that parses word documents and returns clean excel documents (the documents to be parsed would be on the local machine)
- a python project that uses scikit learn to make decisions which customers should get which marketing campaigns

What I would like to know is how I should create an environment (vagrant, virtualbox running linux on an existing Windows machine in my network?) and connect it to my windows environment so that staff can assess these applications.

I would prefer not to have to install python on everyone's computer who might need to use the programs so as not to have to maintain each workstation.  

Can someone please give me ideas on what I should read about (or pay someone to do) that would enable me to create a basis on which multiple Python (web and non-web) applications can be access by staff in a windows environment.

Thank you, and sorry if the question is a bit convoluted, I am trying to get my head around how to create a basis from which to create company wide access to applications.  

Ivan

[toc] | [next] | [standalone]


#105408

Fromjogaserbia <ivanjankovic777777@gmail.com>
Date2016-03-21 14:02 -0700
Message-ID<94e713c3-583e-4537-8eb6-19fe1611e54f@googlegroups.com>
In reply to#105234
On Saturday, March 19, 2016 at 3:16:53 AM UTC-4, Chris Angelico wrote:
> On Sat, Mar 19, 2016 at 6:04 AM, jogaserbia wrote:
> > Can someone please give me ideas on what I should read about (or pay someone to do) that would enable me to create a basis on which multiple Python (web and non-web) applications can be access by staff in a windows environment.
> >
> 
> You basically have two choices:
> 
> 1) Run the Python app on some central server, and have your staff
> access it using something they already have (eg a web server)
> 
> 2) Have them all install Python and run it locally.
> 
> Your call. :)
> 
> ChrisA

Hi Chris, 

To be clear I understand, do I create a Django project and create separate Django apps for each different application I want to build?

That way, I create a main website page (Django in the back), and have everyone click through to the application needed.  

Would I look into using vagrant and virtualbox to create an environment that would then be loaded onto my linux (home development) server and my windows (office) production server to ensure they are the same?  

Thanks for the help,

Ivan

[toc] | [prev] | [next] | [standalone]


#105413

FromChris Angelico <rosuav@gmail.com>
Date2016-03-22 10:07 +1100
Message-ID<mailman.470.1458601662.12893.python-list@python.org>
In reply to#105408
On Tue, Mar 22, 2016 at 8:02 AM, jogaserbia
<ivanjankovic777777@gmail.com> wrote:
> On Saturday, March 19, 2016 at 3:16:53 AM UTC-4, Chris Angelico wrote:
>> On Sat, Mar 19, 2016 at 6:04 AM, jogaserbia wrote:
>> > Can someone please give me ideas on what I should read about (or pay someone to do) that would enable me to create a basis on which multiple Python (web and non-web) applications can be access by staff in a windows environment.
>> >
>>
>> You basically have two choices:
>>
>> 1) Run the Python app on some central server, and have your staff
>> access it using something they already have (eg a web server)
>>
>> 2) Have them all install Python and run it locally.
>>
>> Your call. :)
>>
>> ChrisA
>
> Hi Chris,
>
> To be clear I understand, do I create a Django project and create separate Django apps for each different application I want to build?
>
> That way, I create a main website page (Django in the back), and have everyone click through to the application needed.

Hmm, that depends how you want to structure things. If the different
applications are conceptually different, you can keep them completely
separate by making them separate Django projects; that would give you
the flexibility to put them onto independent URLs, post the source
code to one of them on GitHub and the source to the other on
SourceForge, etc, etc, etc. Alternatively, you can simply have a
single Django application, and then namespace everything using
directories, so people would access http://blah.blah/app1/whatever and
http://blah.blah/app2/whatever to choose what they're doing.

> Would I look into using vagrant and virtualbox to create an environment that would then be loaded onto my linux (home development) server and my windows (office) production server to ensure they are the same?
>

You shouldn't need to, but I would strongly recommend having a
"Staging" server which is as similar as possible to your production
server. It's all too easy to accidentally do something in a
Windows-specific or Linux-specific way if you don't test. (Note that
"Staging" could be actually on the same hardware as "Production", if
you don't have spare funds for a duplicate. Keep your modules separate
using venv, and access them on different URLs; just have some place
where you can quickly check your code under a production-like
environment prior to actually bringing everything down due to a
one-character bug.)

ChrisA

[toc] | [prev] | [next] | [standalone]


#105422

Fromivan77 <ivanjankovic777777@gmail.com>
Date2016-03-21 17:24 -0700
Message-ID<bf8ffac6-b06e-4923-9e5a-c770d9bad753@googlegroups.com>
In reply to#105413
> 
> Hmm, that depends how you want to structure things. If the different
> applications are conceptually different, you can keep them completely
> separate by making them separate Django projects; that would give you
> the flexibility to put them onto independent URLs, post the source
> code to one of them on GitHub and the source to the other on
> SourceForge, etc, etc, etc. Alternatively, you can simply have a
> single Django application, and then namespace everything using
> directories, so people would access http://blah.blah/app1/whatever and
> http://blah.blah/app2/whatever to choose what they're doing.
> 
> > Would I look into using vagrant and virtualbox to create an environment that would then be loaded onto my linux (home development) server and my windows (office) production server to ensure they are the same?
> >
> 
> You shouldn't need to, but I would strongly recommend having a
> "Staging" server which is as similar as possible to your production
> server. It's all too easy to accidentally do something in a
> Windows-specific or Linux-specific way if you don't test. (Note that
> "Staging" could be actually on the same hardware as "Production", if
> you don't have spare funds for a duplicate. Keep your modules separate
> using venv, and access them on different URLs; just have some place
> where you can quickly check your code under a production-like
> environment prior to actually bringing everything down due to a
> one-character bug.)
> 
> ChrisA

Thanks.  I like the idea of the separate URLs.  That way, I guess I could use another framework (e.g. flask), or whatever else if the need ever arose.  Also, I could use a very simple front page with links to all of the projects.  

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web