Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7982775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:46:22+00:00 2026-06-04T10:46:22+00:00

I need to create a webpage that will generate demo similar to https://django-cms.org/en/demo/ .

  • 0

I need to create a webpage that will generate demo similar to https://django-cms.org/en/demo/.
To generate demo, just click Get your demo!

I dont mind about the language, PHP or anything, as long as free and open source.

When the button clicked, it will run /var/testing/makesite.sh

Inside makesite.sh, it has code urlnya="$thegeneratedurl".

If we run echo http://$urlnya/, it will show the full URL like http://site1045.demosite.com/.

After demo website has been generated, I need it display link

There are some PHP example to achieve this by shell_exec, but I scared if its not really safe, and I dont know how to show progress and return the demo URL just like in the Django CMS site.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:46:23+00:00Added an answer on June 4, 2026 at 10:46 am

    Well in python you have subprocess and envoy to execute GNU/Linux commands. You can also use fabric to do this.

    In order to acheive this you might need to learn how to use virtualenv and unique port no has to created for each application.

    This deserves a separate wrong write up. I cannot write whole source code though it is interesting.

    For url part, recommend you to use random subdomain or different idea. You might need to store list of all previously generated values in DB or check currently running demo sites to avoid clash.

    References

    http://docs.python.org/library/subprocess.html
    https://github.com/kennethreitz/envoy
    http://pypi.python.org/pypi/virtualenv
    http://docs.fabfile.org/en/1.4.2/index.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a webpage quite similar to Google's great Docs spreadsheet, but
I need to create a webpage for a family website that has a video
I need to create a webpage which will have following features: It will have
I am trying to develop a webpage which will need to create files in
I need create clone repository. but I do not know where can I get
Need to create a custom DNS name server using C which will check against
I need to give the user a snippet of js code that will insert
I'm trying to create an OData service that will use authentication & authorization provided
Often the Javascript on a webpage will need to be able to access variables
I'm trying to create a mobile-friendly web page that will allow a user to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.