Hi all -
I am stuck on this one. Caching with memcached works when I reference
the local box holding Django. But when I point my setting to a remote
box it does not cache:
This is with Django 1.3 using python-memcached on the localbox in a
virtualenv
'default': {
'BACKEND':
'django.core
lt is to listen on
> all IP
> addresses
> # This parameter is one of the only security measures that memcached
> has, so make
> sure
> # it's listening on a firewalled
> interface.
> #-l 127.0.0.1
>
> On Dec 2, 3:49 am, mattym wrote:
>
>
>
>
>
>
Hi all -
Question. I would love to use a slug in the usual way for nice urls:
#urls.py
urlpatterns = patterns('app.views',
(r'^(?P.*)/foo/$', 'viewfunction'),
)
#views.py
def viewfunction(request, myslug):
themodel = get_object_or_404(MyModel, slug=myslug)
However, due to requirements '
If the shop does not need to be majorly customized I also recommend
Satchmo.
If it is going to be a large store you might have to research
implementing Custom Products with Satchmo. And do a little work
making Custom Products as friendly to administrate and track in the
store admin as Configurable
d, pageslug):
if pageslug != themodel.slug:
return
HttpResponsePermanentRedirect(thebattle.get_absolute_url())
else:
themodel = get_object_or_404(MyModel, custom_id=api_id)
...
#models.py
set get_absolute_url() in models.py accordingly.
~Matt
On Dec 7, 1:36 pm, mattym wro
Thanks again everyone
The solution was a quick adjustment in memcached.conf.
Changing
-l 127.0.0.1
to
-l 0.0.0.0
Matt
On Dec 5 2011, 1:27 pm, mattym wrote:
> Thanks all -
>
> I stepped away from this issue for a few days. I am confident this
> thread will point me in the rig
I started learning Python and Django at the same time. That was a bit
of a challenge for me, with the Django template language having
slightly different syntax. Soon after I started I had to get a project
out fast, so I went with Pinax. Pinax helped me learn more about
Django (and Python). It felt
Scroll down to the second answer by Paolo.
That should lead you in the right direction.
http://stackoverflow.com/questions/625047/django-newbie-reverse-not-found
On Jun 13, 11:04 pm, jaspreet wrote:
> Hello everyone,
> my polls application is completed. Admin part of the polls application
> is
8 matches
Mail list logo