Re: Having issue getting django working on shared hosting account

2017-08-29 Thread Mark Phillips
Linode is a better buy (more ram for the buck) than Digital Ocean. Both are good hosting companies. Mark On Tue, Aug 29, 2017 at 9:18 PM, James Schneider wrote: > > > On Aug 29, 2017 5:18 PM, "Thomas Campion" wrote: > > I tried following vendor

Re: Having issue getting django working on shared hosting account

2017-08-29 Thread James Schneider
On Aug 29, 2017 5:18 PM, "Thomas Campion" wrote: I tried following vendor instructions for installing located at https://support.ehost.com/articles/employees/django-with-fastcgi and cant seem to get anything to display. This is a cheap hosting account and support is non

Re: Having issue getting django working on shared hosting account

2017-08-29 Thread Alexander Joseph
I think getting a django project to work correctly on a shared hosting account might be tricky. If you're open to switching hosting I've tried PythonAnywhere, Heroku, and DigitalOcean and definitely recommend DigitalOcean. I think the majority of django developers recommend DigitalOcean too.

Re: [Channels] Worker Live Reload

2017-08-29 Thread Andrew Godwin
There is no live reload on runworker at the moment - this problem will be mostly fixed with Channels 2.0, though, when we eliminate the need for runworker. Until then, it's not an easy thing to add, but if you're feeling ambitious, it's the sort of thing I would happily take a patch for. Andrew

[Channels] Worker Live Reload

2017-08-29 Thread Jonatas Baldin
Hello there! I'm using Channels with the management command *runworker *with Docker, but every time I change my code I need to restart it :( The Docker configuration is the same for the *runserver* and *runworker*, still *runserver* works just fine. Is this maybe a misconfiguration? Or

Having issue getting django working on shared hosting account

2017-08-29 Thread Thomas Campion
I tried following vendor instructions for installing located at https://support.ehost.com/articles/employees/django-with-fastcgi and cant seem to get anything to display. This is a cheap hosting account and support is non existent, though they do advise I should be able to run django here. Can

Re: Encapsulating Complex Business Logic in a Migraiton

2017-08-29 Thread James Schneider
On Tue, Aug 29, 2017 at 1:43 PM, Matt S wrote: > Standard practice is that you do not refer to "current" models (i.e. from > app.models import MyModel) in a migration as the migration will break when > that models changes. This means copying any model-specific code into the

Re: Encapsulating Complex Business Logic in a Migraiton

2017-08-29 Thread Mike Dewhirst
On 30/08/2017 6:43 AM, Matt S wrote: Standard practice is that you do not refer to "current" models (i.e. from app.models import MyModel) in a migration as the migration will break when that models changes. This means copying any model-specific code into the migration. This becomes impractical

Re: Python and Django traing

2017-08-29 Thread Alexander Joseph
This website is great https://pythonprogramming.net/ that guys one of the best teachers I've seen Theres also a guy on youtube (Bucky Roberts?) whos a pretty good teacher and has some good django tutorials to get you started. I think his channel is called 'thenewboston' I'd recommend

Re: Django deployement Apache

2017-08-29 Thread Daniel Roseman
On Tuesday, 29 August 2017 05:48:57 UTC+1, Vernon Swanepoel wrote: > > You can just copy the static files out of Django and into the static files > in your project itself. No. You should absolutely not do that. That is what the `collectstatic` command is for. -- DR. -- You received this

Re: A lot of Problems with Migrating (conceptual)

2017-08-29 Thread Alexander Joseph
Thanks James, I'm actually starting over from scratch instead of actually refactoring so the accounts app is the only real app I have so far. I actually did delete the database and just apply migrations to the newly created database and it worked ok. I'd like to get better at fixing these

Re: A lot of Problems with Migrating (conceptual)

2017-08-29 Thread James Schneider
On Tue, Aug 29, 2017 at 7:13 AM, Alexander Joseph < alexander.v.jos...@gmail.com> wrote: > I'm not specifying the app level, I'm just running "python manage.py > makemigrations --settings=config.settings.local" and "python manage.py > migrate --settings=config.settings.local" > I'm not

Encapsulating Complex Business Logic in a Migraiton

2017-08-29 Thread Matt S
Standard practice is that you do not refer to "current" models (i.e. from app.models import MyModel) in a migration as the migration will break when that models changes. This means copying any model-specific code into the migration. This becomes impractical when the code needed for the

Testing file upload via a form?

2017-08-29 Thread Derek
(Python 3.5 and Django 1.10) I am trying to test a Django form that enables a required file upload. The form is very simple and includes a field that looks like: upload_file = forms.FileField() The corresponding test to try and check the upload: def test_form_validation_with_file(self):

Re: A lot of Problems with Migrating (conceptual)

2017-08-29 Thread Alexander Joseph
I'm not specifying the app level, I'm just running "python manage.py makemigrations --settings=config.settings.local" and "python manage.py migrate --settings=config.settings.local" I'm not modifying the migrations files and I dont have an app with the label of admin, thats just the built-in

change button value

2017-08-29 Thread vishnu bhand
How to change Save button value to Request for a perticular model in django admin. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Django Upsert Transaction

2017-08-29 Thread James Schneider
On Aug 25, 2017 5:45 AM, "Fendy Purnomo" wrote: Hi, I'm relatively new to Django and have use it in past few months. Recently I stumbled upon a SQL deadlock. After digging deeper it was caused by SQL gap lock when inserting. I'm assuming this was not in a Django app?

Re: Add Web Service Reference Django project

2017-08-29 Thread James Schneider
On Aug 26, 2017 6:18 AM, "Anar Novruzaliyev" wrote: I need to add web reference and use it in my Django project , How I can do it or it is possible? I have no idea what a web reference is. Can you provide an example or more detailed explanation? -James -- You

Re: A lot of Problems with Migrating (conceptual)

2017-08-29 Thread James Schneider
File "C:\Users\Alexander\Envs\business_management\lib\site-packag es\django\core\management\commands\migrate.py", line 86, in handle executor.loader.check_consistent_history(connection) File "C:\Users\Alexander\Envs\business_management\lib\site-packag es\django\db\migrations\loader.py",

Re: django filter

2017-08-29 Thread Muhammad M
Please, post your related code (from your models, views and template) here so that we can take a look. Thank you. > On Aug 29, 2017, at 1:59 AM, sum abiut > wrote: > > I did that but the approved leave is still showing on the table. > > Cheers

Re: Deploy production django applications with Python2.7 and Python3.5 on same Apache web server

2017-08-29 Thread James Schneider
On Aug 28, 2017 11:51 PM, "BIJAL MANIAR" wrote: I tried serving both Python2.7 and Python3.5 based django applications through same Apache and it did not work. Getting below error: Traceback (most recent call last): File

Re: Deploy production django applications with Python2.7 and Python3.5 on same Apache web server

2017-08-29 Thread BIJAL MANIAR
I tried serving both Python2.7 and Python3.5 based django applications through same Apache and it did not work. Getting below error: Traceback (most recent call last): File "C:/virtualenvs/ecst_venv_D111P36A22M51\lib\site.py", line 67, in import os File

Re: django migration error: django.db.utils.ProgrammingError: must be owner of relation account_userprofile

2017-08-29 Thread James Schneider
On Aug 28, 2017 6:44 PM, "Samuel Muiruri" wrote: getting this error when I'm running migrate, to note this is likely related to the db connection I believe /revamp/revampenv/local/lib/python2.7/site-packages/django/db/utils.py", line 95, in __exit__

Re: django filter

2017-08-29 Thread sum abiut
I did that but the approved leave is still showing on the table. Cheers On Tue, Aug 29, 2017 at 2:44 PM, sum abiut wrote: > Thanks heaps Muhammad. > Sum > > On Tue, Aug 29, 2017 at 10:13 AM, Muhammad M wrote: > >> Hi Sum, >> >> Add an "approved" field