Jump to content

patents

Members
  • Posts

    92
  • Joined

  • Last visited

Posts posted by patents

  1. 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.

  2. 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.

  3. 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.

  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.

×
×
  • Create New...