patents
-
Posts
92 -
Joined
-
Last visited
Posts posted by patents
-
-
One of my web app requires that the file is created for example on:
'/home/patents/public_html/mysite/log.txt'
but I got
[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? -
I am talking about practical approach not theory.
Are you using it yourself?
Once you set your models, How would you do migration? how you use it?
-
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.
-
Sorry for late reply. Thanks for your kind support.
If patents or some other helpful HelioHost member wants to help out a ton you could make a list of module install requests on these forums that people have made for Tommy python 3.6.
I will do my best in this regard.
I myself always use latest python for development so I am not against the up-gradation.
What I suggest that whenever you get request for upgrade or you yourself would like to upgrade, You can ask for the modules that people want to retain.
Then you can upgrade in only re-install the modules as per the requirements of people. I agree that re-installing the all module will not be rational.
-
If possible Please install these libraries. These are very basic modules that will be usefull for all.
beautifulsoup4 Cython html5lib python-docx numpy pandas python-hdf4 requests six xlrd XlsxWriter openpyxl
Thanks.
I have to use python 3.6.3 I guess.
-
I don't Understand this. This is Impractical. This will make heliohost unusable for production.
If I have production website on the Heliohost, my site wont work for till you install all the library which may take a while.
on request of someone who doesn't know even know how django works on heliohost, the python is upgraded.
I don't have any problem with python upgrade but the fact that all the modules are gone.
I propose that if it is possible, before upgrading to new python, you should export the package list using;
pip freeze > requirements.txt
and for new python installation,
pip install -r requirements.txt
will install the same.
I was loving the heliohost till yesterday but now I have to think about it.
-
I don't Understand this. This is Impractical. This will make heliohost unusable for production.
If I have production website on the Heliohost, my site wont work for till you install all the library which may take a while.
I propose that if it is possible, before upgrading to new python, you should export the package list usinig;
pip freeze > requirements.txt
and for new python installation,
pip install -r requirements.txt
will install the same.
-
Thanks. I just need 80.
-
OH. Thanks. Let me try
-
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.
-
Thank you very much. This has also installed the dependency of lxml which is also very useful.
-
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/'
-
I got this on
import sys sys.version
3.6.0 (default, Feb 20 2017, 09:28:46) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
I want it to run on django project configured as per the instruction from here
-
I would like to install python-docx for my user account on tommy. is it possible?
-
Thanks Krydos,
It works perfectly now.
-
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.wsgiI 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.
Wrong Python Version On Python/django Wiki
in Website Management and Coding
Posted · Edited by Krydos
removed comma from url
Currently the wiki page : http://wiki.helionet.org/Django, shows wrong python version. I tried editing but I guess I Don't have required Privileges.
Currently it shows: 3.6.6
It should be: 3.6.3