Hi,
Hard to say without knowing the exact context, but my gut feeling is that
you've modified a system wide library at a moment (maybe inadvertently).
My own experience is that it's easy to mess with Python libraries when
installing packages with sudo , which may happen form time to time whe
Could you post a few more lines of this settings.py? Preferably the whole
DATABASES definition.
Just in case there actually is a weird invisible character try retyping
'postgresql', but more likely it looks as if you are using wrong quotation
marks other than ' or ". I dont even have on my keyb
that's odd. Whenever I test a pacakge, it's always installed first in
virtualenv. Maybe when I updated my system? Btw, I have some projects which
are not yet in github, can I just copy and paste them in a new folder with
new virtualenv?
On Wed, Feb 14, 2018 at 4:44 PM, PASCUAL Eric wrote:
> Hi,
Hi Eric,
Le 2018-02-14 à 03:44, PASCUAL Eric a écrit :
Hi,
Hard to say without knowing the exact context, but my gut feeling is
that you've modified a system wide library at a moment (maybe
inadvertently).
My own experience is that it's easy to mess with Python libraries when
installin
Im trying to have a custom admin that is also able to edit some model
properties, but putting those properties into my fieldsets its complaining
Unknown field(s) (foo, bar) specified for Profile. Check
fields/fieldsets/exclude attributes of class ProfileAdmin.
The properties work in list_displa
Hi,
The copy/paste of the project tree will work of course. Chances are that
unwanted files can be brought too, but this should not be a problem in a first
stage.
I have used rsync or tar archives to deploy Django projects in some cases, and
it worked fine.
Eric
__
Hi Etienne,
I prefer messing with standard distutils/setuptools commands to avoid
situations like this... ;-)
Messing and restoring system libs is a matter of personnal taste 😃
Eric
From: Etienne Robillard
Sent: Wednesday, February 14, 2018 11:07:07 AM
To: PA
On 14/2/18 08:05, Andy wrote:
> Im trying to have a custom admin that is also able to edit some model
> properties, but putting those properties into my fieldsets its complaining
What would mean to edit a property (assuming this means an attribute
that isn't a model field) in your app? Where woul
As an example i wanted to have the username editable inside the profile.
Since the Django default user doesnt have a foreign key to profile i cant
just use an inline admin for the user model, so my next idea was to solve
it with properties just getting from and saving to the related user model.
You can have an OneToOneField in the profile referencing Django's User model
with `related_name='profile'`, so you can access information from there as
`user.profile.birthday`. An useful link:
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
About t
Am Mittwoch, 14. Februar 2018 14:45:49 UTC+1 schrieb Adler Neves:
>
> You can have an OneToOneField in the profile referencing Django's User
> model with `related_name='profile'`,
Well, i know this and the related entry is accessible even without
explicitly defining the related_name. You can
Hi,
I'm trying to set up the following configuration in Docker
python: 3.6.4
Django: 2.0.2
Apache/2.4.10 (Debian)
First, I was getting the error
ImportError: No module named django.core.wsgi
Then I added Django to PYTHONPATH
export PYTHONPATH="/usr/local/lib/python3.6/site-packages"
the prev
Ok Thank You
вторник, 13 февраля 2018 г., 19:36:27 UTC+1 пользователь M Hashmi написал:
>
> JSON is parsing in and out information from JS to Python or Django in your
> case directly. For instance let's suppose you have a JS script in your
> template and you need to pass your context variables i
Hi,
Normally you shouldn't have to add site-packages in the PYTHONPATH since it is
supposed to be already. If not, packages installed via "sudo pip install" would
not be found.
I've packaged a lot of applications in Docker containers, and never had to
modify PYTHONPATH.
Your problem is may
I’m not familiar with Docker, but I did have to add the path to Python 3.6 DLLs
in my WSGI configuration in my Apache configuration file.
WSGIPythonPath ${project_path};${virtualenv};C:/Python36/DLLs;
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of PASCUAL
Thanks for the reply Gonzalo, I really appreciate the feedback.
So, conceptually I understand how the remaining pieces of this app fit
together - but could I ask for just a little more of your help as I'm
struggling with coding the details of what's needed.
Let's start basic - I've got some 'ca
You’ll want to use card.get_absolute_url.
See https://docs.djangoproject.com/en/2.0/ref/models/instances/#get-absolute-url
In your get_absolute_url, you should probably use the reverse method to use the
name of a URL rather than hard-coding it in the method. That’s the second
example in that sec
On woensdag 14 februari 2018 16:14:40 CET Lylio wrote:
> I'd like to click on one of the items in the list and open up a new page
> showing all the database details for that particular list item (title,
> description, time of creation, etc). Roughly, would I change the list items
> into links:
>
On woensdag 14 februari 2018 15:01:15 CET Andy wrote:
> Well, i know this and the related entry is accessible even without
> explicitly defining the related_name. You can change defaults defining the
> related_name, tho.
> But still trying to add a UserInline to the ProfileAdmin wont work due to
>
Thanks for the reply Melvyn - I'm slowly getting there!
So, I now understand how to insert the unique object reference. After
creating card.html, and defining card in views, my list element URL is:
{% for card in cards.all %}
{{ card.title
}}
{% endfor %}
And if I click on the second card
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': ‘postgres’,
'USER': ‘postgres’,
'PASSWORD': ‘*’,
'HOST': ‘localhost’,
'PORT': ‘8000’,
}
}
On Wednesday, February 14, 2018 at 3:58:59 AM UTC-5, Andy wrote:
>
> Coul
Maybe it works like this in Windows (I don't know since having left this world
since long now), but Greng mentioned a Debian environment inside his Docker
container. Hence my remark.
By the way you mentioned "DLLs". Geng's trouble seems to be related to Python
packages finding, not binary libs
On Wed, Feb 14, 2018 at 5:32 PM, Joe wrote:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql',
> 'NAME': ‘postgres’,
> 'USER': ‘postgres’,
> 'PASSWORD': ‘*’,
> 'HOST': ‘localhost’,
> 'PORT': ‘8000’,
> }
> }
Looks l
I used TextEdit on Mac to edit the files, maybe using a different editor
would work better.
On Wednesday, February 14, 2018 at 5:41:24 PM UTC-5, larry@gmail.com
wrote:
>
> On Wed, Feb 14, 2018 at 5:32 PM, Joe >
> wrote:
> >
> > DATABASES = {
> > 'default': {
> > 'ENGINE': 'd
The problem was with the quotes being weird format, had to copy and paste
the correct quotes in for it. Thanks for the help!!
On Wednesday, February 14, 2018 at 9:59:06 PM UTC-5, Joe wrote:
>
> I used TextEdit on Mac to edit the files, maybe using a different editor
> would work better.
>
> On
I'm working on a Django-powered subscription website with a Django-powered
CMS backend. Can the User model, or a derived class, be made to be
compatible with this idea? In my case, I want to store a user's username,
password, and subscription ID.
--
You received this message because you are s
26 matches
Mail list logo