I think you could consider using raw sql,
https://docs.djangoproject.com/en/2.2/topics/db/sql/#executing-custom-sql-directly
On Fri, Oct 25, 2019 at 7:56 PM Cheda me wrote:
> Hey guys,
>
> I have worked out the SQL query I would like to implement but am currently
> struggling to create the Djang
hi,
You may need to check that the database django connect to is the same as
you checked that the column is exists?
On Tue, Oct 22, 2019 at 8:32 PM red wrote:
> Hi everyone,
>
>
> I have a website in production. I have an app, with a model. It contained
> a markdown_file attribute:
>
> markdown
hi,
Besides the solution provided by @nm, maybe you can do it by using
database trigger ...
On Tue, Oct 22, 2019 at 2:05 AM Eileen Bauer wrote:
> Hi,
> i have the following items in my model:
> mother_alive = models.IntegerField(choices=YES_NO_CHOICES, blank=True,
> null=True, default=1)
>
https://asgi.readthedocs.io/en/latest/specs/main.html#specification-details
here
is the spec for ASGI, you can check what the doc says.
On Wed, Oct 23, 2019 at 7:49 AM DeVonte Applewhite <
devonte_applewh...@trimble.com> wrote:
> Does anyone have an idea where I can get more information on Daphne
hi,
Daphne support both http and websocket connect, if it's an http connection,
I think daphne will close the application when the application gives a
response. But if it's a websocket connection, it will keep the connection
and last until the websocket connect close.
On Wed, Oct 9, 2019 at 7:46
hi,
Maybe you need to check what mysql.connector is. What's the output for
'dir(mysql.connector)' ?
On Wed, Oct 23, 2019 at 11:08 AM MEGA NATHAN
wrote:
> Hi.
>
> AttributeError: module 'mysql.connector' has no attribute 'connect'
>
>
>
>
>
> regards
> Meganathan,
>
> --
> You received this mess
hi,
A user could have many roles, it's all depends on your design. My
understanding is:
1. When user directly sign up, he will be assigned the primary role.
2. When user sign up by an invitation, he will be assigned the member role.
3. So can a user in member role invite other users?
The 'save()'
hi,
I checked the source code for Daphne, it uses import_by_path to import
application
def import_by_path(path):
> """
> Given a dotted/colon path, like project.module:ClassName.callable,
> returns the object at the end of the path.
> """
> module_path, object_path = path.spli
oh ,sorry my mistake. But I think the error is pretty clear ...
On Fri, Oct 18, 2019 at 10:23 AM wd wrote:
> Dude, you need to indent at the line include 'context' ... it's a
> beginners problem...
>
> On Fri, Oct 18, 2019 at 10:14 AM sotiris moustogiannis <
Dude, you need to indent at the line include 'context' ... it's a
beginners problem...
On Fri, Oct 18, 2019 at 10:14 AM sotiris moustogiannis
wrote:
> I have an error: name 'result' is not defined
>
>
>
> def search(request):
>
> def get_queryset(self):
> query = self.request.GET.ge
The error is pretty clear ...
[image: image.png]
May be it should be path('', views.first_view, name='first_view') ?
On Fri, Oct 18, 2019 at 4:41 AM Muhamed Bešić
wrote:
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe
hi,
export DJANGO_DEBUG=False
This is a shell command, you shouldn't add this to your settings.py.
On Fri, Oct 11, 2019 at 9:51 PM fishbite wrote:
> Hi there,
>
> My first post to this group!
>
> I've built the locallibrary project following the MDN tutorial and I'm now
> preparing to deploy th
hi,
I think It's not a django problem, it's a classic web developing problem.
Http is stateless, if you want to 'save' something, you need to use
1. URL param like the 'q=soccer'.
2. Use cookie/session.
I think your problem can be solved by one of the methods below:
1. Use ajax to do the search,
hi,
I didn't think django template tags are relevant with script or any html
code. They are totally different things.
I think it's just your code editor didn't recognize the tags, have you
tried ignore them and see if django will report an error ?
On Thu, Oct 10, 2019 at 6:22 PM Rain wrote:
> I
On Wed, Sep 4, 2019 at 4:52 AM Dan Davis wrote:
> I'm wondering how to make my tests fast while also having a lot of data
> defined in the models.
> This project is already using sqlite3 and the tests are single-threaded.
>
>
Django support parallel, you can use multi process to save time.
> -
ally only
>> bugs that are security issues or causes data loss are backported to older
>> releases.
>>
>> I think this procedure is documented somewhere...
>>
>> ke 28. elok. 2019 klo 8.06 wd kirjoitti:
>>
>>> It's so weird, the code is alr
It's so weird, the code is already in master 7 months, but still not
released yet?
On Wed, Aug 28, 2019 at 6:09 AM John MacLaughlin <
john.maclaugh...@carbonlighthouse.com> wrote:
> I see this ticket was addressed, fixed, and merged. However, it's not in
> the latest release (2.2.4)
>
> Ticket: h
On Wed, Aug 21, 2019 at 2:32 AM Sam W wrote:
> I'm sorry. But knowing Python alone is not enough.
>
>
> I know Python and Django really well, still can't find a job for more than six
> months.
>
>
> You need to know Solid Python programming, python framework (Django (DRF)
> & Flask), Docker and
QuerySet.query is not a plain string, it's an Query object, you can check
the source code
def __str__(self):
> """
> Return the query as a string of SQL with the parameter values
> substituted in (use sql_with_params() to see the unsubstituted string).
>
> Parameter values won't ne
19 matches
Mail list logo