Thanks.
Could you explain last point about 3 different sites?

As I said I'd like to have separate middlewares and urls.
Currently I have two Django projects defined, they share app paths and most 
of settings (middlewares are redefined and urls are separate).  

Marcin


W dniu piątek, 26 maja 2017 13:31:46 UTC+2 użytkownik Jani Tiainen napisał:
>
> Ok,
> There are several ways how to tackle with this (you can do most of that 
> with webserver configs). Just limit access from proper IP's (if your VPN is 
> setup decently it will give your end users certain IP-range(s) which you 
> can use to filter admin-access) same for "local network" app.
>
> But this doesn't really affect uswgi-serving at all it will still do it's 
> work as usual since it's more problem of frontend parts that sits before 
> uwsgi.
>
> Alternatively you could define 3 different sites that do ran limited 
> ranges of URLs and route them through the front end (and apply same 
> restrictions as one site model)
>
>
> On 26.05.2017 14:22, marcin....@gmail.com <javascript:> wrote:
>
> I think that my reqs are pretty straightforward. 
> I'd like to setup project environment with 3 different apps:
>
>    1. main app (public) 
>    2. admin app (vpn) 
>    3. local network app for api talking with other services in the 
>    datacenter   
>
> The whole thing is about preserving same project environment.
> Models, registries, configuration should stay same.
> Middlewares, urls, views and anything related to http will be different.
>
> BR,
> Marcin
>
> W dniu piątek, 26 maja 2017 13:16:49 UTC+2 użytkownik Jani Tiainen 
> napisał: 
>>
>> Hi,
>>
>> Your requirements are a bit contradicting.
>>
>> While you want to use same app with identical settings twice to different 
>> domain, you also want to have different urls? 
>>
>> How these urls should be different compared to that other site?
>>
>> On 26.05.2017 13:26, marcin....@gmail.com wrote:
>>
>> Hi. 
>>
>> I'd like to serve more uwsgi apps for the same project. 
>> These apps must have just separate urls and must be served on spearate 
>> domains. 
>> I'd like to have separate appservers. 
>> The rest, i.e. project's environment, should stay same. 
>>
>> How to achieve that? 
>> I know I can create a new django projects and import/copy main app's 
>> settings. Is there an other way? 
>>
>> BR,
>> Marcin
>> -- 
>> 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/0da53e34-428d-4803-ba8f-dddc83c24443%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/0da53e34-428d-4803-ba8f-dddc83c24443%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> -- 
>> Jani Tiainen
>>
>> -- 
> 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 <javascript:>.
> To post to this group, send email to django...@googlegroups.com 
> <javascript:>.
> 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/457fa003-6515-40d3-a661-a402cf45b5db%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/457fa003-6515-40d3-a661-a402cf45b5db%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> Jani Tiainen
>
>

-- 
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/aa3c925e-e747-44ce-9238-acd320646e47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to