Re: Keep logged in accross Sites

2017-07-06 Thread Constantine Covtushenko
Hi Pablo, As suggested Larry this can be like SSO implementation in one of sites hosted by your Django server. But this can be done in more simple way because all sites are hosted within the same Django server. Possible Workflow: === Terms 'SSO Site' - one of the sites whic

Re: Django ORM and TestCase

2017-07-06 Thread howie9393
Ok got it. Thanks for all the help! On Thursday, July 6, 2017 at 2:39:56 PM UTC-7, Jani Tiainen wrote: > > Because there is open transaction and changed data is readable within that > transaction. And since each test runs in own transaction ORM can see the > changes within each test. > > Transac

Re: Django ORM and TestCase

2017-07-06 Thread Jani Tiainen
Because there is open transaction and changed data is readable within that transaction. And since each test runs in own transaction ORM can see the changes within each test. Transaction is like a (new) file in text editor. You can edit text and only you can see the edited text. Only if you save th

Encrypted Fields

2017-07-06 Thread Duane Hilton
I'm looking at using EncryptedCharField in django-extensions. It uses Keyczar, which I've read is not compatible with Python 3 ( https://stackoverflow.com/questions/37234111/encrypt-django-model-field-using-python-3-5). My question is: Can Keyczar and EncryptedCharField be used with Python 3? --

Re: static files not found on development server

2017-07-06 Thread Antonis Christofides
No, the development server recognizes new static files on the fly. However, it can sometimes fail; for example, if you have removed the directory and recreate it. So restarting it is a good idea when you are trying to debug it. Antonis Christofides http://djangodeployment.com On 2017-07-06 19:20

Re: Django ORM and TestCase

2017-07-06 Thread howie9393
Thanks for the reply! So how does the Django ORM see that uncommitted data in the database when we run the MyObj.objects.count()? On Thursday, June 29, 2017 at 2:34:28 PM UTC-7, Jani Tiainen wrote: > > Hi, > > In TestCase Django wraps all tests within transaction and makes commit and > rollback

Re: static files not found on development server

2017-07-06 Thread Andreas Schosser
Hi Alex > On development, I run the django-admin runserver, which AFAIK should take > care of the static path. Did you restart the development server. I think the static files are collected at startup and newly added files are not recognized on the fly. Andreas -- Kurs 10 IT-Consulting

Re: Django-oscar ModuleNotFoundError 'apps\\checkout'

2017-07-06 Thread Avraham Serour
what is the cwd? On Thu, Jul 6, 2017 at 6:55 PM, Bernard Oosthuizen < bernardoosth...@gmail.com> wrote: > Here is my tree view. I think I might as well just work on linux because I > am struggling a lot with packages on Windows. > > ├───apps > │ ├───checkout > │ │ └───__pycache__ > │ ├───

Re: Django-oscar ModuleNotFoundError 'apps\\checkout'

2017-07-06 Thread Bernard Oosthuizen
Here is my tree view. I think I might as well just work on linux because I am struggling a lot with packages on Windows. ├───apps │ ├───checkout │ │ └───__pycache__ │ ├───order │ │ ├───migrations │ │ │ └───__pycache__ │ │ └───__pycache__ │ └───__pycache__ ├───frobshop │

django.db.utils.IntegrityError: NOT NULL constraint failed: core_profile.user_id

2017-07-06 Thread vitalysweb
i'm trying to build a customised registration to my site, so i'm using a sign Up with Profile Model that inherits from django User class with "OneToOneField" relation . i'm having this ERROR after submit a form that i made to let user complete profile information just after SignUp's email confir

Re: static files not found on development server

2017-07-06 Thread Axel Rau
> Am 06.07.2017 um 11:44 schrieb Melvyn Sopacua : > > On development, you're running a webserver that doesn't know the `/static` > url or failed to run `python manage.py collectstatic`. On development, I run the django-admin runserver, which AFAIK should take care of the static path. I have che

Re: save cropped image with PIL to database

2017-07-06 Thread Melvyn Sopacua
On Monday 03 July 2017 03:09:56 shahab emami wrote: > hello > > i have a question and i cant find answer with search. Really? https://duckduckgo.com/?q=django+resize+image&t=ffsb&ia= software -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Djan

Re: Class Based Views : filter items by users

2017-07-06 Thread Melvyn Sopacua
Please show all relevant bits of the code (user_list is not part handed off to the template). But you could start but not naming 2 different variables inside eachother's scope identical. On Tuesday 04 July 2017 09:36:51 Nabil BOUDERBALA wrote: > {% if user %} > {% for user

Re: static files not found on development server

2017-07-06 Thread Melvyn Sopacua
[Assuming the weird opening quote comma replacement is formatting, not actual code] On Thursday 06 July 2017 11:03:19 Axel Rau wrote: > Why do I get > [06/Jul/2017 09:54:20] "GET /static/css/bootstrap.min.css HTTP/1.1" > 404 1676 on development server, while on production server, it works.

Re: Deprecating model field (Deleting model field, but keeping DB column)

2017-07-06 Thread Melvyn Sopacua
On Tuesday 04 July 2017 20:39:37 tay...@cedar.com wrote: > I am having some trouble figuring out the best way to remove model > fields in Django. If I remove a field from a model and then run > makemigrations, it creates a RemoveField operation in a migration. > That is great, but if I decide to ru

Re: How do I model a 'paper object' that should have reviewers?

2017-07-06 Thread Melvyn Sopacua
On Wednesday 05 July 2017 10:02:59 Denis Cosmin wrote: > I need to create an journal like application, where users can submit > papers and those papers can be reviewed. My code is publicly > available on github and the app is about ~50 done. > > The reviewers should also be users of the same app a

Re: Django + React: Shared Model Consistency

2017-07-06 Thread Melvyn Sopacua
On Wednesday 05 July 2017 16:34:49 Guilherme Leal wrote: > DRF already have (something like) that [1]. Like I said to George, I'm > trying to avoid the "request the metadata from the api call" aproach, > as it tends to bloat the client with metadata requests. There are no psychic clients availabl

static files not found on development server

2017-07-06 Thread Axel Rau
Hi, I can’t find the answer to this simple question: Why do I get [06/Jul/2017 09:54:20] "GET /static/css/bootstrap.min.css HTTP/1.1" 404 1676 on development server, while on production server, it works. In production, I have On development, I have tried this and this:

Re: Django-oscar ModuleNotFoundError 'apps\\checkout'

2017-07-06 Thread Avraham Serour
The double backslash is probably because you are on Windows Can you post your directory structure? You may try printing the cwd on settings.py to see what the relative path should be On Jul 5, 2017 9:10 PM, "Bernard Oosthuizen" wrote: > I am trying to *fork* one of the apps of django-oscar so