Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

on Vesta, how to setup a django website?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
dolacmeo
Posts: 1
Joined: Thu Aug 27, 2015 2:54 pm

on Vesta, how to setup a django website?
  • Quote

Post by dolacmeo » Thu Aug 27, 2015 3:03 pm

is there any details about how to setup django on apache2,
I only found the conf of wsgi simple.
and in the simple , found path like:

Code: Select all

python-path=/home/admin/web/buyplus.me/private/django/bala.bala/env/lib/python2.6/site-packages
but nothing in there.

anyone? help plz
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: on Vesta, how to setup a django website?
  • Quote

Post by skurudo » Tue Sep 01, 2015 6:38 pm

And this path do you use correct?
Top

erm3nda
Posts: 9
Joined: Sun May 24, 2015 8:42 am

Re: on Vesta, how to setup a django website?
  • Quote

Post by erm3nda » Fri Jan 29, 2016 12:55 am

This path does assume you used python virtualenv into that user folder, to enable env/lib/ at that point after you install it's requeriments, of course (in example, django)

Im sure you'll need to tweak the version at all.
Top

paralosreg
Posts: 9
Joined: Tue Jan 27, 2015 2:11 pm

Re: on Vesta, how to setup a django website?
  • Quote

Post by paralosreg » Tue Mar 08, 2016 12:39 pm

Hello.
I need a little help to deploy a Django application. I use this Apache conf manually.

Code: Select all

<VirtualHost *:80>
    # This is name based virtual hosting. So place an appropriate server name
    #   here. Example: django.devsrv.local
    ServerName  [[SERVER_NAME]]
    ServerAdmin webmaster@localhost

    # This alias makes serving static files possible.
    #   Please note, that this is geared to our settings/common.py
    #   In production environment, you will propably adjust this!
    Alias /static/  {{ project_directory }}/run/static/

    # This alias makes serving media files possible.
    #   Please note, that this is geared to our settings/common.py
    #   In production environment, you will propably adjust this!
    Alias /media/  {{ project_directory }}/run/media/

    # Insert the full path to the wsgi.py-file here
    WSGIScriptAlias /   {{ project_directory }}/{{ project_name }}/wsgi.py

    # PROCESS_NAME specifies a distinct name of this process
    #   see: https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess
    # PATH/TO/PROJECT_ROOT is the full path to your project's root directory, 
    #   containing your project files
    # PATH/TO/VIRTUALENV/ROOT: If you are using a virtualenv specify the full
    #   path to its directory.
    #   Generally you must specify the path to Python's site-packages.
    WSGIDaemonProcess   {{ project_name }}  python-path={{ project_directory }}:{{ project_directory }}/../lib/python2.7/site-packages

    # PROCESS_GROUP specifies a distinct name for the process group
    #   see: https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIProcessGroup
    WSGIProcessGroup    {{ project_name }}

    # Serving static files from this directory
    #   Please note, that this is geared to our settings/common.py
    #   In production environment, you will propably adjust this!
    <Directory {{ project_directory }}/run/static>
        Options -Indexes
        Order deny,allow
        Allow from all
    </Directory>

    # Serving media files from this directory
    #   Please note, that this is geared to our settings/common.py
    #   In production environment, you will propably adjust this!
    <Directory {{ project_directory }}/run/media>
        Options -Indexes
        Order deny,allow
        Allow from all
    </Directory>

    LogLevel warn

    # PROJECT_NAME is used to seperate the log files of this application
    ErrorLog    ${APACHE_LOG_DIR}/{{ project_name }}_error.log
    CustomLog   ${APACHE_LOG_DIR}/{{ project_name }}_access.log combined
</VirtualHost>
It would be very interesting to make a tutorial for all newbies like me. I have no idea where copy my django project files with the default VestaCP wsgi configuration.
Top

djangotutslv
Posts: 1
Joined: Fri Jul 30, 2021 5:24 am
Contact:
Contact djangotutslv
Website Facebook Twitter

Os: Ubuntu 12x
Web: apache
Re: on Vesta, how to setup a django website?
  • Quote

Post by djangotutslv » Fri Jul 30, 2021 5:28 am

Setting up a Django website with Vesta is a task that is best left to the professionals. This article will guide you through the more complicated steps of installing and running your Vesta website on your own without any hassle. Also you can pick Django tutorial also.
1) Install Vagrant
2) Install Virtual Box
3) Download and install latest version of Ubuntu Server or whichever distribution you prefer
4) Clone this repository: git clone https://github.com/astroboycoffee/vesta_site.git
5) Follow the instructions in the readme file in order to run the script

Vesta is a web design company that allows you to create your own website for as little as $5/month. Vesta uses django, python, and other revolutionary technologies to do this.

Vesta can be thought of as a web hosting service with an additional site builder. You can upload your own design templates from the Vesta template marketplace or import them from other sites. Then once you have the website's design set up, Vesta will set up the necessary software on their servers so that you can start building your site!
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: on Vesta, how to setup a django website?
  • Quote

Post by imperio » Tue Aug 03, 2021 10:37 am

https://github.com/astroboycoffee/vesta_site.git
404
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password