Jump to content

Search the Community

Showing results for tags 'django'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. One of my web app requires that the file is created for example on: '/home/patents/public_html/mysite/log.txt' but I got PermissionError at /[Errno 13] Permission denied: '/home/patents/public_html/mysite/log.txt' It is understood that it is not enabled for web server. Is there any way I can modify files using python3.6 script?
  2. Does anybody uses postgress (or any database) with django (ORM). I am struggling as there is no shell access. I don't know if it is possible to use django ORM on heliohost.
  3. Is there any restriction on outbound Internet access from My Django app so that if I cross that limit, I will be blocked? I started to love heliohost and I don't want to be blocked.
  4. I am trying to work with postgress on tommy with django. here is django settings.py import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'secret' DEBUG = True ALLOWED_HOSTS = ['*'] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'wsgi.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'patents_plrplus', 'USER': 'patents_plr', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '3306', } } AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True STATIC_URL = '/static/'
  5. I was trying Django to work on tommy. I am following this tutorial. My directory structure is: home/└── patents/ └── public_html/ ├── db.sqlite3 ├── manage.py └── hello/ ├── .htaccess ├── dispatch.wsgi ├── __init__.py ├── settings.py ├── urls.py ├── wsgi.py └── dispatch.wsgi I am however not able to see .htacess file using cPanner filemanager. I recently created the account. Is this the reason for error? I am getting this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@patents.heliohost.org to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Please find attached the zipfile of my project.
  6. Hi all, Now project dependencies seems to be satisfied, my Django website is not properly configured because it is not loaded when accesing to https://inforiesgo.heliohost.org/ File .htaccess seems to be correct, I have followed the steps described in the Django wiki. I think the problem could be related to: Postgres: I created the postgres database and changed settings.py file in order to use this new database. Anyway, the creation of this database is just to create and asign it a superuser, not launching commands such as manage.py makemigrations or migrate, so the database should be empty. settings.py database configuration looks like: 'NAME': 'iniesta_inforiesgo', 'USER': 'iniesta_juanky', 'PASSWORD':*****, 'HOST':'127.0.0.1', 'PORT': '5432' static files: I made no changes related to the static files, so settings.py is the same than the one working in localhost:STATIC_URL = '/static/' Any help would be grateful. Thanks!
  7. Hello, I just uploaded my Django website and, after setting it up following the wiki, it is displaying a 500 internal server error when accesing to http://inforiesgo.heliohost.org I presume this is happening because my website is not properly configured (.htaccess, folder structure, ...) or because it is using the toolkit django-rest-framework that maybe is not installed in Tommy. Because of that, several questions came to my mind: Is it possible to install django-rest-framework (or other) in Tommy?Do I have access to the server error log files?My username in Tommy's server is iniesta. Thanks in advance!
  8. Hello everybody ! I tried to do this tutorial : http://wiki.helionet.org/Django . Unfortunately, it doesn't work at all. All I have is a 500 error : I think I made everything required, but unfortunately, that didn't work. However, there's something that I probably made bad : where should I put the .htcaccess ? IMHO, this could be better explained in the tutorial. And maybe there is a problem with the .htaccess example and the tree output provided below : it seems that only one 'hello' dir exist, but the .htaccess seems to require two : 'hello/hello/' If I have enough help, I'm volunteer to modify the wiki (if necessary). Thanks in advance !
  9. How can I deploy my Django project to Tommy: https://github.com/davidbgeek/drEdsby? What I've done is I've just renamed my wsgi.py to dispatch.wsgi. Not sure what else I'm supposed to do.
  10. Hi guys, thanks for your great work! I'd like to ask you whether there's a chance to have django on tommy, or on any other server. (I followed the instructions in the wiki to get django working, and then I discovered that isn't supported on tommy) account: albertoc site: sest.gq Cheers!
  11. I know that there was a previous post asking this question and I've read that post but it did not help. I followed the http://www.heliohost.org/home/features/languages/python. I made sure that I've changed all permissions (as required in the guide). I even tried the try except block in the wiki but I'm not sure how I can read the output. I don't see the error in the html header. http://wiki.helionet.org/Solving_Internal_Server_Errors This is my domain: http://www.rktteam.heliohost.org/
  12. Hi everyone Noob here. Sorry. First of all, I am looking forward to getting my teeth into scripting with Python and MySQL. I have my first simple script running, so all good there. However... I have looked at a lot of forum posts. Many seem to ask the same question, but none seem to provide any firm advice. Before anyone points me towards: http://www.heliohost.org/home/features/languages/python, can someone give me a Big Picture overview of Python, Django and why I can't import mySQLdb into my scripts? First of all, I thought my script was buggy, but even this doesn't work: #!/usr/bin/python import MySQLdb ...and I get a 500 error. The link above seems to give a series of instructions (for which I am very grateful), but these are very bottom-up. I am looking to make connections to make sense. Once I get my first mySQLdb script running, I'll be flying (I hope). Fingers crossed spangle (Darren)
  13. I need to deploy a Django 1.7 app to my account. It has been written in Python 3. Is there a deployment guide (heliohost specific) ? Is it possible to use these versions of Python/Django instead of the ones provided by default ?
  14. Hi, I am trying to deploy a Django App in Johnny, but it requires numpy. I tried to copy the numpy's source code into my public_folder and import it from there, but numpy is not supposed to be imported from the source tree, since it has some C libraries dependecies. Is it possible tha you would consider installing numpy and matplotlib in Johnny? I appreciate your attention. Best regards, Pedro
  15. Hi, I am trying to deploy a Django app in Johnny. But when I access my_domain.heliohost.org/, I get "Internal Server Error". I have checked the ErrorLog at the first time (accessed through cPanel) and seen the following: " [Fri Mar 20 06:34:14 2015] [error] [client 200.148.44.244] File does not exist: /home/pedrovgp/public_html/404.shtml [Fri Mar 20 06:34:14 2015] [error] [client 200.148.44.244] File does not exist: /home/pedrovgp/public_html/favicon.ico [Fri Mar 20 06:34:14 2015] [error] [client 200.148.44.244] File does not exist: /home/pedrovgp/public_html/404.shtml [Fri Mar 20 06:34:14 2015] [error] [client 200.148.44.244] File does not exist: /home/pedrovgp/public_html/favicon.ico " I have added the above mentioned files, but I keep getting the same Error, and the ErrorLog shows me only those four messages, no matter how many times a try to access the url. I have followed instructions from HelioHost and from this url: http://www.thebrokendesk.com/post/deploying-a-django-site-to-heliohost/ I appreciate any help! Best regards, Pedro
  16. Hi! I just sign up in Jhonny two days ago and I uploaded my Django app. I use PostgreSQL as db backend, but Im having trouble to restore my DB running the backup script I previously generated with Pgadmin3. I created a new database, then I went to the "SQL" tag and ran my code. First odd thing I found was that in the public scheme of my DB there was more tables than it should be. I suspect there is some kind of policies in the server that "shares" the public scheme with all the databases. Is this it? Do I have to create a separated schema to store my data? Or should I use the public instead? Thans in advance
  17. Hello, i need help with configuring Django on Stieve. The error log is clear but server returns 500 error. http://imamatory.heliohost.org My configuration: dispatch.wsgi import os, sys sys.path.append('/home/denwer/public_html/zvukgroup'); os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' os.environ['PYTHON_EGG_CACHE'] = '/home/denwer/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler() def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] return _application(environ, start_response) .htaccess RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ zvukgroup/dispatch.wsgi/$1 [QSA,PT,L] settings.py
  18. Hello, I've been trying for a while now to run a different version of Django on my site and got to wondering if Heliohost plans to upgrade the Django version on Stevie or Johnny? The file structure used in Django 1.3 has been deprecated for a couple years now and having another more recent Django version preinstalled on the server would make development and deployment much easier. It's an awesome framework and this is one of the few hosting sites (free or not) that supports it, so not much to complain about I suppose, just curious/hopefull that there may be plans to upgrade the version. Thanks, P
  19. I guest I've followed How do I use Python/Django? perfectly, exept the sentence: If it is your wish to develop on-site you will need to manually create a blank __init__.py file, a settings.py file, and a urls.py file. And after that, after following the guide, my specified subdirectory is now have an 500 Internal Server Error.. Do I need to install the Django web development framework manually before it'll work? Please help..
  20. I created a website using Django 1.5, and I managed to get it running on HelioHost! Here's what I did, after following the instructions at http://www.heliohost...anguages/python... First, I downloaded the Django-1.5.1.tar.gz file from the Django website. Then, I extracted it and uploaded the Django-1.5.1/django/ folder to /home/username/django_1.5_override/django. I also created an empty __init__ file in /home/username/django_1.5_override, to tell Python that it could import stuff from here. I'm not sure if it's needed, though. I then added a few lines to the dispatch.wsgi file; the modifications are in the first 3 lines: import os, sys oldpath = sys.path sys.path = ['/home/username/django_override/django-1.5.1/'] + oldpath sys.path.append("/home/username/myapp"); os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings' os.environ['PYTHON_EGG_CACHE'] = '/home/username/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler(); def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']; try: # added so that I can see errors if they occur; should be removed once the website is fully functional return _application(environ, start_response) except Exception, e: import traceback trace = traceback.format_exc() status = '500 Internal Server Error' output = trace response_headers = [('Content-type', 'text/plain'),('Content-Length', str(len(output)))] start_response(status, response_headers) return [output] Basically, what I did was to add the Django 1.5.1 folder to the beginning of sys.path, so that when Python needs to import django, it imports my uploaded one instead of the default one. After following these steps, Django 1.5.1 is running perfectly, and I can make use of all the new features!
  21. Hello, Yesterday I created an account with HelioHost and today I was trying to set up my previously developed django project with it by following these instructions: http://www.heliohost.org/home/features/languages/python. However, I don't know why whenever I try to access the site I get a 500 Internal Server Error. Help would be extremely appreciated. My username: aslet The site: http://alexisferreira.heliohost.org/ Thanks in advance, Aslet
  22. Hi, i made a subdomain and it is activated now . what must i do to use it ? what changes i must do to htaccess file ?
  23. Hi , I want to add a captcha to my form with django-simple-captcha package but it's not in python path , how install it on stevie ? is there be other package for captcha ?
  24. I can get djangotest running on my site, and I'd like to build on it to get my Django site up and running. I was able to go to "http://<mydomain>/djangotest" and the django page came up. However, I tried to give the djangotest directory a new name and edit the dispatch.wsgi to match the new name. When I went to "http://<mydomain>/<newname>", a server error page came up telling me that it couldn't find "/djangotest/dispatch.wsgi." Why is it thinking to look there? I don't know anything else that references it. Why didn't it go to the new directory name?
  25. I have tried to follow the guidelines for uploading a django project to my account, and I have tried to follow the wiki's guide to debug the dispatch.wsgi file, but I don't seem to be getting any productive feedback. The site was working on the django 1.3.7 development server. Ideally, an index.html page powered by django would appear at <http://www.8bitphotos.com>, but only a directory index appears. I hit "500 Internal Server Error" when trying to access <http://www.8bitphoto...eightbitphotos/>, in which my project files are saved. What do I need in order to get things running smoothly?? I've tried things from other forum topics but without any luck. Thanks for any help you can provide. username: dvance error log after trying to access <http://www.8bitphoto...eightbitphotos/>: [sat May 11 19:12:58 2013] [error] [client 76.27.60.233] File does not exist: /home1/dvance/public_html/404.shtml [sat May 11 19:12:58 2013] [error] [client 76.27.60.233] File does not exist: /home1/dvance/public_html/favicon.ico [sat May 11 19:12:58 2013] [error] [client 76.27.60.233] File does not exist: /home1/dvance/public_html/500.shtml, referer: http://www.8bitphotos.com/ [sat May 11 19:12:58 2013] [error] [client 76.27.60.233] File "/home1/dvance/public_html/eightbitphotos/dispatch.wsgi", line 13, in application, referer: http://www.8bitphotos.com/ [sat May 11 19:12:58 2013] [error] [client 76.27.60.233] mod_wsgi (pid=20162): Exception occurred processing WSGI script '/home1/dvance/public_html/eightbitphotos/dispatch.wsgi'., referer: http://www.8bitphotos.com/ dispatch.wsgi file: try: import os, sys sys.path.append("/home1/dvance/public_html/eightbitphotos"); os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' os.environ['PYTHON_EGG_CACHE'] = '/home/dvance/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler() def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] return _application(environ, start_response) ### line 13 except: import traceback trace = traceback.format_exc() def application(environ, start_response): status = '500 Internal Server Error' output = trace response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) return [output]
×
×
  • Create New...