Please send your views.py. You must have a home page or index page where
you want to paginate records.
On Tue, Feb 19, 2019 at 11:23 AM Aakash Baranwal
wrote:
> I have also used Ajax with that. It's load more button is not working, it
> is showing the 10 posts which is the limit I set in the beg
I have also used Ajax with that. It's load more button is not working, it
is showing the 10 posts which is the limit I set in the beginning, but not
going beyond that.
On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang <
tamangsiddhart...@gmail.com> wrote:
> Are you trying pagination using JavaScr
I am trying to do it using Django. I used Django Rest Framework API
Guide-Pagination for reference
On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang <
tamangsiddhart...@gmail.com> wrote:
> Are you trying pagination using JavaScript or Django?
>
> On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal
Are you trying pagination using JavaScript or Django?
On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal
wrote:
> Hello Everyone,
>
> I am new to Django and working towards developing a web app where 10 posts
> appear at a time with a "Load More" option given at last which when clicked
> shows the
I'm at the point of wanting to write some help for a website, the standard
helpfile sort of scenario ;-). If that means little to you, just a
hierarchy of pages that document things and can be linked.
I wrote page one with the Django flatpages app:
https://docs.djangoproject.com/en/2.1/ref/con
I am guessing maybe there is an issue with the redis-server? *The log I
received from Daphne*:
2019-02-18 21:07:54,543 ERRORError trying to receive messages: Error
running script (call to f_3640886a0c8901ca9188f5f7a5f7a346145b9c5f):
@user_script:3: @user_script: 3: -MISCONF Redis is configur
Hi,
I'm having some trouble getting data from a database with foreign-keys.
Normally a query-set retrieved like this, obj =
model.objects.all().filter(id=pk).select_related(), would give me the table
row data, and the related row data from another table defined in the model,
of the default da
I think this link can help you
https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/12187751/django-pass-multiple-models-to-one-template&ved=2ahUKEwimi5aqosbgAhUJtRoKHaiCCYYQjjgwAHoECAcQAQ&usg=AOvVaw0pFQWtYwtjrd03LHLWZ8rz
--
You received this message because y
Lance,
sincerely, nobody take care about that feature because that's needed just
for legacy db.
The number of applications with on legacy db is less than 0.01% of the
django applications.
There are some workaround for that applications, for example use SQL
Alchemy.
I implemented a CompositeKey Da
Thank you in advance!
On Monday, February 18, 2019 at 4:14:44 PM UTC-5, flora.xia...@gmail.com
wrote:
>
> Hi,
>
> The real-time discussion function (supported by Daphne) on my website is
> not working (Other non-real-time functions are good). The console echos:
> "WebSocket connection to 'ws://
Hi,
The real-time discussion function (supported by Daphne) on my website is
not working (Other non-real-time functions are good). The console echos:
"WebSocket connection to 'ws://xxxforum/room_xxx/' failed: Error during
WebSocket handshake: Unexpected response code: 200". I've went through th
Hi Amitesh,
>From my experience, You need to go to Google’s settings and enable access to
>‘less secure apps’. That will let you send emails freely from your django dev
>environment. Do so at your own risk, as any less secure app can use your email
>and password. I would suggest you create a du
There's general interest in having support for composite keys and composite
foreign key. It's just that nobody has implemented it.
There are proposals among the DEPs that layout ideas how they could be
implemented:
- https://github.com/django/deps/blob/master/draft/0191-composite-fields.rst
-
"As your requirement is read-only if the data is static you could to create a
second database, with all the PK of the legacy database, and
then as single Pk field to that table, and access everything through a view of
a join the two tables."
I had such a requirement, and I created a View in Post
Lance,
I can't speak for the core team, only inform you based on what I've
seen here and in other projects.
I suspect if there was a significant need across a number of users,
then enough work could be done by those that needed it and as long as
it was
1) fully functional,
2) ha
I'll note that "CREATE_DB" is slightly misleading, and would be more
accurately called "CREATE_SEPARATE_TEST_DB_IN_ORACLE".
The error I'm getting is somewhat misleading also as there's nothing wrong
with the ALWAYS keyword, the problem is that the test script is trying to
create a table in a da
Hi,
Could you give me some quick fix, I am using django currently, or could be
please suggest me how to take the parent table data with prefetch related
filter.
Thanks
On Monday, February 18, 2019 at 6:21:33 PM UTC+5:30, Sebastian Henschel
wrote:
>
> Heya,
>
> Am 18.02.19 um 10:52 schrieb
Hi all,
I think I've found a bug here - or certainly I have some behaviour that I
don't expect and don't want.
My django (2.1.7) project is providing a query/read interface to some
existing legacy databases. These are Oracle based (and that brings its own
challenges, as they're not current Ora
Bonjour
J'essaye d'afficher plusieurs resultats de ma views.py dans un template.
Mais django ne me le permet pas ,puisque à chaque url correspond un view.
J'ai essayé de faire 2 block content dans ma base mais sans résultat.
--
You received this message because you are subscribed to the Google
I'm trying to show in one template .html multiple results of my views.py
class.
But when i add an other {%block content2 %} in my base.html, i have an
error.
Because i have the same url
path('partenaire/', views.OffrePListView.as_view(), name='offreListP'),
path('partenaire/', views.BaseViewP.a
Heya,
Am 18.02.19 um 10:52 schrieb HEMENDRA SINGH HADA:
> In my current project we are using sqlite3, When I am fetching data from
> sqlite3 db tables and counting the query-set length it is giving me error
> "Too many SQL query" when the length is more than 999. till 999 its working
> fine, P
Vào 1:05, Th 2, 18 thg 2, 2019 Maarten Nieber Hi,
>
> the Django guidelines tell us to implement CustomUserManager.create_user.
> However, this seems to introduce some ambiguity between
> CustomUserManager.create_user and CustomUserManager.create, since both
> these methods can be expected to crea
Hi All,
In my current project we are using sqlite3, When I am fetching data from
sqlite3 db tables and counting the query-set length it is giving me error
"Too many SQL query" when the length is more than 999. till 999 its working
fine, Please suggest some quick fix for this,
Thanks in Advance
Perfect Simon. I’ll give it a go.
Appreciate your help.
Gavin
On Mon, 18 Feb 2019 at 08:10, Simon A wrote:
> Hi Gavin,
>
> Please see this one.
> https://docs.djangoproject.com/en/2.1/topics/http/sessions/. It first
> needs to be setup in your settings.py.
>
> Basically, this is just a field i
NONCONFIDENTIAL // EXTERNAL
So, basically, Django will not be supporting Composite Primary Keys in the
future?
Lance
-Original Message-
From: django-users@googlegroups.com On Behalf
Of Michal Petrucha
Sent: Monday, February 11, 2019 8:34 AM
To: Django users
Subject: [External] Re: Com
if you have MFA enabled on your gmail, you may have to disable it
On Mon, Feb 18, 2019 at 1:08 PM Onkar Narkar
wrote:
>
> Hi Amitesh,
>
> Are you getting some error like this:
> smtplib.SMTPAuthenticationError: (534, b'5.7.9 Application-specific
> password required. Learn more at\n5.7.9
> https
Hi Gavin,
Please see this one.
https://docs.djangoproject.com/en/2.1/topics/http/sessions/. It first needs
to be setup in your settings.py.
Basically, this is just a field in the database that gets retrieved
whenever you want.
# set a session variable
self.request.session['key'] = 'value'
# get
27 matches
Mail list logo