Have you tried
from . import view
Note the space between . and import
On Aug 4, 2017 6:14 PM, "Body Abdo" wrote:
> I'm trying to import view in my url in base project but i can't
>
>
> File "/var/www/project/venvs/lib64/python3.6/importlib/__init__.py", line
> 126,
I'm trying to import view in my url in base project but i can't
File "/var/www/project/venvs/lib64/python3.6/importlib/__init__.py", line
126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in
I finally made the leap to Django 1.11 from 1.10. I thought that I needed to
use the new Subquery, but it turned out that I was able to solve my problem
without using it. Good news for sure!
However, I have noticed that my forms are loading more slowly.
We discovered that when we were using
Hello,
I would like to remove the labels in my sign-in form and just have
placeholders in the text fields. Its working for my sing up form but for
some reason not for my sign-in form. Below is my forms.py, my views.py, and
my models.py. I think its because I'm using Django's auth view for the
Hi,
I am trying to have a drop down menu for a field in my form but seems like
its not working as required.
This is my form: forms.py
eval_states = [
('ACTIVE',EvalState.objects.filter(name='ACTIVE')),
('INACTIVE',EvalState.objects.filter(name='INACTIVE')),
if you remove your primary key, you will not be able to identify your
record in your database, could you please precise what do you want to
achieve by doing this ?
Le vendredi 4 août 2017 14:07:19 UTC+2, jagadishreddy bommareddy a écrit :
>
> I am using Django frame work in that models.py in
the method is called in a def post() within a class view:
user_cv = CandidateCV.objects.get(user=request.user)
user_cv_file = str(user_cv.resume).split('/')[-1]
s3upload(user_cv_file)
The file is converted from doc to pdf in server project folder, where
manage.py is.
So probably there is no
Hi
After upgrading from Django 1.8 -> 1.10 I get alot of this exception:
Internal Server Error: <>
SuspiciousOperation at <>
The request's session was deleted before the request completed. The user
may have logged out in a concurrent request, for example.
Unfortunately I am not able to
You can’t. You can change what field is the primary key, but you can’t remove
the primary key. Just specify primary_key=True on the field you would like to
make your primary key.
>From the docs:
Each model requires exactly one field to have
I am using Django frame work in that models.py in any field i don't want
primarykey how can i avoid primary key
--
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
Did you solve it?
среда, 5 мая 2010 г., 0:16:41 UTC+3 пользователь janedenone написал:
>
> Hi,
>
> when using Django's password reset mechanism, the confirmation email
> is not sent (although some of my custom views do send email
> successfully using the SMTP configuration from settings.py).
Hi,
I am starting to learn Django.
When I installed django for the first time, it was working fine, when i
restarted my system it is giving the above mentioned error. I tried editing
the *path* environment variable but still it doesn't work.
*django-admin.py* file is in *C:\Program Files
I'm trying to evaluate these two Websockets solutions for Django. Has
anyone here done compared these?
I don't fully understand what the differences between them are. I think the
main difference is that Channels can generalize all requests (websocket or
request/response) to be handled by
I have read widely (including the docs) and been daunted by the notion
of coverting auth.user into a custom user. I have data and wonder if
there have been any recent recipes for doing this?
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups "Django
14 matches
Mail list logo