How are you copying? Selecting with your mouse and ctrl+c? Or in code?
On Tue, Jan 26, 2016, 4:32 AM 张超 wrote:
> *I want to copy the inline object included in the admin when I copy the
> admin object*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django us
Are you using localhost or 127.0.0.1?
In my experience 127.0.0.1 is faster and less buggy on windows
On Tue, Jan 26, 2016, 4:30 AM Carlos Andre wrote:
> install setuptools.
> install pymysql
>
> and the your python version!
>
> 2016-01-25 14:17 GMT-02:00 Gonzalo V :
>
>> Wich module did you use?
Try this
def foreginexchange_view(request):
t = loader.get_template("template.html")
test=ball.objects.filter(request="checked").count()
return HttpResponse(t.render({'test': test}))
On Tuesday, January 26, 2016 at 4:45:52 AM UTC+2, suabiut wrote:
>
> Thanks James,
> here is my
you want to paginate both querysets at the same page?
i believe it's a pretty strange idea and if so, you should think how to
refactor it
if you want only paginate posts, i'll recommend you to use
django-pagination app of some sort, it's can be used in template
On Monday, January 25, 2016 at 5:
can you show me one examples with my view ?
Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos
Xristoou έγραψε:
>
> i want to using Paginator in my main page for my post list. i see docs and
> examples for that but i thing my problem is a specific, because on my view
> i hav
if you'll decide to use some app for pagination, you can do it in template,
like
so https://github.com/ericflo/django-pagination/blob/master/docs/usage.txt
({% autopaginate posts 10 %})
or you can choose one of
these https://www.djangopackages.com/grids/g/pagination/
there is no actual need to
if i use {autopagination} i dont need quyre on my view ?
Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos
Xristoou έγραψε:
>
> i want to using Paginator in my main page for my post list. i see docs and
> examples for that but i thing my problem is a specific, because on my
you can read the usage doc i sent linked, but yes - you don't need to do
anything with you queryset in view only pass it to template
On Tuesday, January 26, 2016 at 4:39:17 PM UTC+3, Xristos Xristoou wrote:
>
> if i use {autopagination} i dont need quyre on my view ?
>
> Τη Δευτέρα, 25 Ιανουαρίου
one more question how to install this ?autopagination ?i dont see anything
Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos
Xristoou έγραψε:
>
> i want to using Paginator in my main page for my post list. i see docs and
> examples for that but i thing my problem is a specif
are you familiar with the pip utility?
if not, i highly recommend to read about
it https://pip.pypa.io/en/stable/quickstart/
if yes, you should know that you can install any application with pip
install package_name
and how set it up with django - it's better if you read in instructions for
pack
return reverse('blog:post_detail', args=[self.publish.year,
self.publish.strftime('%m'),
self.publish.strftime('%d'),
self.slug])
url(r'^(?P\d{4})/(?P\d{2})/(?P\d{2})/(?P[-\w]
thnx you i try to use that now
Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos
Xristoou έγραψε:
>
> i want to using Paginator in my main page for my post list. i see docs and
> examples for that but i thing my problem is a specific, because on my view
> i have two Querys
i follow the simpe steps but i take error invalid syntax
(pagination_tags.py, line 225)
Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos
Xristoou έγραψε:
>
> i want to using Paginator in my main page for my post list. i see docs and
> examples for that but i thing my probl
Hi
> i am trying to count the number of fields that has request field begin
> checked and then display the value of count in a template.html but i am not
> sure how to go about doing that.
If you pass your object to the template you can use the "length" filter:
{{ test|length }}
Andreas
--
Ku
are you using python 3?
that's actually what i talking about - it's too old
try another one, like
this https://github.com/jamespacileo/django-pure-pagination - follow
the instructions and i hope you'll be fine
On Tuesday, January 26, 2016 at 5:09:29 PM UTC+3, Xristos Xristoou wrote:
>
> i follow
that method is Confusing,i try to understand,i create new view or i work
with current?i not understand it the using 'people' and object on they view
Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos
Xristoou έγραψε:
>
> i want to using Paginator in my main page for my post l
i foolow the steps but i have again error my new view :
def index(request):
try:
page = request.GET.get('page', 1),
except PageNotAnInteger:
page = 1,
objects = ['john', 'edward', 'josh', 'frank']
p = Paginator(objects,request=request)
people = p.page(page)
i find solutio
using https://docs.djangoproject.com/en/1.9/topics/pagination/ thnX
Τη Τρίτη, 26 Ιανουαρίου 2016 - 3:10:06 μ.μ. UTC+2, ο χρήστης pa xapy έγραψε:
>
> you want to paginate both querysets at the same page?
> i believe it's a pretty strange idea and if so, you should think how to
> r
On Tue, Jan 26, 2016 at 6:12 AM, Andreas Schosser wrote:
> Hi
>
> > i am trying to count the number of fields that has request field begin
> > checked and then display the value of count in a template.html but i am
> not
> > sure how to go about doing that.
>
> If you pass your object to the temp
On Tue, Jan 26, 2016 at 5:30 AM, 林攀 <18610710...@163.com> wrote:
> return reverse('blog:post_detail', args=[self.publish.year,
> self.publish.strftime('%m'),
> self.publish.strftime('%d'),
>
hello i have use the embed video tools to using dynamic youtube urls for
trailers but i have a stupid error.
if i import on admin in the field video urls one video url from youtube and
i see url for that is correct i save it in my post,
but on my site if i run the server show me else video some v
When i did that i got the error:
'dict' object has no attribute 'render_context'
On Tue, Jan 26, 2016 at 7:25 PM, wrote:
> Try this
> def foreginexchange_view(request):
> t = loader.get_template("template.html")
> test=ball.objects.filter(request="checked").count()
> return HttpRe
Carlos,
Any advantage of pymysql over MySQLdb (MySQL-python)?
- http://sourceforge.net/projects/mysql-python/
--Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristl
hello,
i want to an easy way to create search page on my site to searching only
the titles.
who is the better and easy way for to doa that ?
mayde some tools to install ?
any idea ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscri
Hello,
I'm writing an app which needs authentication and I was wondering if
the information about the user should be put in request.session. My app
deals with the access to certain equipments and every user has a
different set of equipment it can sees. Should I put the list of
equipment in
On Tue, Jan 26, 2016 at 1:46 PM, Xristos Xristoou wrote:
> hello,
>
>
> i want to an easy way to create search page on my site to searching only
> the titles.
> who is the better and easy way for to doa that ?
> mayde some tools to install ?
> any idea ?
>
Try one of these:
https://www.djangopa
On Tue, Jan 26, 2016 at 2:06 PM, Lorenzo Bernardi <
lorenzo.berna...@lpn.cnrs.fr> wrote:
> Hello,
>
> I'm writing an app which needs authentication and I was wondering if the
> information about the user should be put in request.session. My app deals
> with the access to certain equipments and e
in code! Now I can copy the admin object and the related object ,I want to
make relation with the related object , how can i do it?
在 2016年1月26日星期二 UTC+8下午5:55:42,Avraham Serour写道:
>
> How are you copying? Selecting with your mouse and ctrl+c? Or in code?
>
> On Tue, Jan 26, 2016, 4:32 AM 张超 >
>
28 matches
Mail list logo