You can configure a basePath through flashvars as you said, but you don't 
have to make django serve the index.html to set that dynamically. You can 
put it by hand, allowing you to deploy on different servers in a decoupled 
manner.

Maybe I'm missing something here but I don't see anything wrong with that 
approach. I almost always use flashvars to specify at least one location, 
probably for a configuration file, which contains the paths to the backend 
services, external assets, etc. 

Another thing you could do is configure a CNAME record so that 
backend.frontendserver.com points to backendserver.com. 


El jueves, 31 de mayo de 2012 15:54:35 UTC-3, fred escribió:
>
> I use Flex for the client side and XML between client and server.  I am a 
> “one man team” and so elegance sometimes gets sacrifices for “it works”.   
> My typical deploy has been
>
> /var/www/html/my flex swf and html code
>
> And
>
> /home/projectname/current/djangositename
>
>  
>
> This works well, except that I have to use absolute URL’s in Flex 
> (including the server name) because Flex will use either absolute or 
> relative to the location of the .swf file.  This means I have to rebuild 
> for different servers.
>
>  
>
> Are there any recommendations of “best practices”
>
> 1.       I could have the django view return the html page that includes 
> the swf file.  This has the advantage of allowing django to pass in some 
> flashvars to the application,  the disadvantage is closer coupling (at 
> least for deploy) of client and server; or
>
> 2.       I could use the url redirect to allow a relative reference to 
> get redirected to my django home.
>
>  
>
> I’m not an Apache expert and so I defer to the community which is more 
> experienced with these issues for a clean, generic solution I can use going 
> forward as I port to Django 1.4 and CentOs 6.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/KqN3HWLknioJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to