My other problem is when using a queryset value in my method:
This works:
insert_to_db(id)
But this does not:
insert_to_db(id, result)
Any help would be greatly appreciated :)
What is the insert_to_db function? That's probably where your issue is.
Without that code, there probably isn't
I am trying to pass a queryset value as an argument to a method but it
won't proceed; it shows no error. And I tried printing it like this:
for id in Review.objects.values_list('id', flat=True):
print("ID: " + id)
Output:
1
However, it worked and looped when I changed it to this:
for id in
I am not using result backend my question is that when the broker
connection is lost it throws a connection refused exception which i could
normally catch through the following given below code.
*try:*
* add.delay(2, 2)*
*except add.OperationalError as exc:*
* print('error');*
Reference 1:
On 2018-01-02 22:23, Julián Melero Hidalgo wrote:
> Wich OS is better to develop with django?
Ideally, develop on the same platform you plan to deploy on.
If you don't want to develop on the same platform, the closer you are
to your development platform, the easier time you'll have of it. So
if
Mac or Linux with PyCharm. Windows can be used but you may struggle with
some Python packages which work well and are easily setup on nix.
On Wed, 3 Jan 2018 at 8:40 am, Mike Morris wrote:
> I've been linux only for many years - the last Windows I used was 2000
>
I've been linux only for many years - the last Windows I used was 2000
Professional so you can guess my recommendation on OS :-)
As for IDE, I found "Eric 6" (https://eric-ide.python-projects.org/),
which is pretty great, and free. Installation was bumpy since it has
some pre-requisites,
I get error :
ValueError: Enter a valid duration.
When i'm importing excel file - i'm using postgresql
my models.py
An Series class - for describe series in the system
"""
id = models.CharField(max_length=20)
program = models.CharField(max_length=100)
tape = models.CharField(max_length=100)
In my opinion ubuntu
no, but I wouldn't say good either
yes
pycharm
good luck
On Tue, Jan 2, 2018 at 11:23 PM, Julián Melero Hidalgo <
jul...@melerohidalgo.es> wrote:
> Hi all.
> I don't have experience with django, so I have so much questions.
> The questions are:
> Wich OS is better to develop
Hi all.I don't have experience with django, so I have so much questions.The questions are:Wich OS is better to develop with django?Windows is a bad option?Can I use Win for develop and GNU/Linux as a server?What IDE (atom, VS Code, vim,etc..)you use?Thank you!!!
--
You received this message
I'd like to remove the Django allauth change email page and all of its
functionalities that come with it. I know I can make a template for allauth
and use my custom pages and deleting that page and removing all the
functionalities associated with it manually, but I was wondering if there
was
I have a set of expectations I'm trying to achieve. I want a sign up,
login, and forget password page. I also want to have social sign in using
Twitter, Facebook, or Google. Another thing I want is to send a
confirmation email to the user validating their account.
I know I can do this with
I am trying to have social sign in on my site using allauth. However, I do
not want all the other features that come along with it. For example, I
don't want the accounts feature (login, sign up, etc.) I only want:
allauth.socialaccount
I tried installing only this app and I did get all the
With a broker connection loss, the only thing that will happen is your
workers won't pick up new tasks.
If you're posting to a result backend like redis and lose the connection,
then an exception will be raised in the logs and the task will shut down.
Remember tasks are independent processes
I am not losing connection but i am preparing for failure if what happens
broker connection is lost and how celery will handle the task...i don't
want the request to stuck infinite time.
On Tuesday, January 2, 2018 at 6:24:22 PM UTC+5:30, Jason wrote:
>
> This is probably something better
This is probably something better suited for the celery github issue
tracker or https://groups.google.com/forum/#!forum/celery-users
how come you're losing connections so often?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe
What you can do is split the backend into a REST API using
http://www.django-rest-framework.org/
Refactor the views to share common logic, and you can have your template
renders bound to one view handler and an api call to another. Configure
your urls.py to have a url like
In one small project all web requests were done by humans in the past.
We used a login form and cookie bases sessions.
Now an API gets created and automated processes access these new URLs.
These processes use a different auth backend.
Now I see two possible solutions:
Solution1: Use one
On Tuesday, 2 January 2018 09:42:08 UTC, Joshua O. Morales wrote:
>
> Here's the snippet of my code:
> models.py:
>
> class Comment(models.Model):
> comment_title = models.TextField()
> comment_content = models.TextField()
> def __str__(self):
> return self.comment_content
>
>
Here's the snippet of my code:
models.py:
class Comment(models.Model):
comment_title = models.TextField()
comment_content = models.TextField()
def __str__(self):
return self.comment_content
def test_me():
comment_id_set = list(Comment.objects.values_list('id',
get_object = get_object_or_404(Title, title=title)
if get_object:
print(get_object.title)
or
title = Title.objects.filter(title=title)
if title:
print(title[0].title)
On Tue, Jan 2, 2018 at 3:00 PM, Joshua O. Morales <
joshuao.morale...@gmail.com> wrote:
> title =
if your title object has a __str__ then it can be printed.
Printing a queryset object make no sense!
HTH
Etienne
Le 2018-01-02 à 04:30, Joshua O. Morales a écrit :
title = Title.objects.filter(title=title)
print(title)
Is there a way to turn this:
**
into a string:
*Hello,
title = Title.objects.filter(title=title)
print(title)
Is there a way to turn this:
**
into a string:
*Hello, World*
I tried using it as an argument but it gave me an error.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On Dec 31, 2017 7:26 AM, "Sundararajan Seshadri" wrote:
Thanks for the support and responses.
The error was due to an interesting line of code.
I had a middleware where I used:
match = resolve(request.get_full_path()) and this was causing the error I
23 matches
Mail list logo