Re: Django Sitemap HTTP Error 500

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? We can help you in this and related techincal tasks at fair prices. Reply or send email to divy...@pythonmate.com Best Regards, Divyesh Khamele, Pythonmate On Tue, 29 Sep 2020, 1:57 pm dum dum, wrote: > I'm using django si

Re: Django Sitemap HTTP Error 500

2020-09-29 Thread Kasper Laudrup
Hi Dum Dum, On 29/09/2020 13.42, dum dum wrote: Thanks kasper. I actually did check the logs many times both local and production, nothing is wrong,, I use: heroku logs --tail -a -myapp on my production environment It looks like this is only bringing up the access logs, which is not reall

Re: Django Sitemap HTTP Error 500

2020-09-29 Thread dum dum
ealized that in the log, there are robots crawling my website. Since I have links left to be crawled. But for newer links in my site, the robot wouldn't find it because this error. [image: image.png] pic above is from my google search console.. [image: image.png] this one is from bing webmas

Re: Django Sitemap HTTP Error 500

2020-09-29 Thread Kasper Laudrup
Hi Dum Dum, On 29/09/2020 10.26, dum dum wrote: I'm using django sitemap to generate my sitemap. In local it works normally, I can visit 127.0.0.1:8000/sitemap.xml <http://127.0.0.1:8000/sitemap.xml> and see the data. But in production, I got http error 500 (site matching quer

Django Sitemap HTTP Error 500

2020-09-29 Thread dum dum
I'm using django sitemap to generate my sitemap. In local it works normally, I can visit 127.0.0.1:8000/sitemap.xml and see the data. But in production, I got http error 500 (site matching query not exist) when trying to access "domain.com/sitemap.xml". I've been follow

Re: Django Sitemap on heroku error h13

2020-09-21 Thread Omkar Parab
Put your code on github. I'll compare with my code. I've done sitemap for my site and it's working. On Mon, Sep 21, 2020, 8:55 AM dum dum wrote: > Anyone has solution for this issue? > Please let me know > Thanks > > On Mon, Sep 14, 2020 at 12:31 PM dum dum wr

Re: Django Sitemap on heroku error h13

2020-09-20 Thread dum dum
Anyone has solution for this issue? Please let me know Thanks On Mon, Sep 14, 2020 at 12:31 PM dum dum wrote: > Update for this case: > I fixed the h13 error by limiting records that I pulled from database. > I still don't understand yet why heroku gave me that error, maybe because > the server

Re: Django Sitemap on heroku error h13

2020-09-13 Thread dum dum
Update for this case: I fixed the h13 error by limiting records that I pulled from database. I still don't understand yet why heroku gave me that error, maybe because the server spec is not good enough for my data that has lot rows to pulled. I'm using heroku hobby-basic. Firefox: I open domain/si

Django Sitemap on heroku error h13

2020-09-12 Thread dum dum
I don't know why, in local localhost:8000/sitemap.xml will generate sitemap.xml. But on heroku, domain/sitemap.xml will error h13. I followed this tutorial https://jawaban.online/scope/outlink/6442/django-sitemap-tutorial-help-crawlers-understand-your-website-2018-youtube/ and https://mediu

The sitemap framework documentation

2015-10-14 Thread Emre Düzer
Hi, There is an error while declaring code in the sitemap framework documentation. Incorrect statement: from django.contrib.sitemaps.view*s* import sitemap url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap

Sitemaps: Individual index file for each sitemap file

2013-03-12 Thread rosy
s for each sitemap. Is there any other app or any other way to do this ? In sitemaps.py, i have : sitemaps = { 'movie': MovieSitemap,'news': NewsSitemap,} class MovieSitemap(Sitemap): changefreq = "daily" priority = 0.9 def items(self): return

Re: Problem with django sitemap

2012-12-17 Thread Sandeep kaur
On Tue, Dec 18, 2012 at 1:17 PM, Frankline wrote: > But the sites framework has already been installed, as you can see from my > settings file. > According to me, If that is true then it should not have thrown Import error. To install the sitemap app, follow these steps:

Re: Problem with django sitemap

2012-12-17 Thread Frankline
But the sites framework has already been installed, as you can see from my settings file. On Tue, Dec 18, 2012 at 10:44 AM, Sandeep kaur wrote: > On Sun, Dec 16, 2012 at 10:55 PM, Frankline wrote: > > > > I'm having a problem implementing the sitemaps in my application. I'm > > > > > ImportErro

Re: Problem with django sitemap

2012-12-17 Thread Sandeep kaur
On Sun, Dec 16, 2012 at 10:55 PM, Frankline wrote: > > I'm having a problem implementing the sitemaps in my application. I'm > > ImportError at /sitemap.xml > > No module named django.contrib.sitemaps > > Request Method: GET > Request URL: http://localhost:8000/sitemap.xml > Django Version: 1.4.2

Re: Problem with django sitemap

2012-12-17 Thread Frankline
gt; 1. In my *urls.py* > > from sitemap import JobPostSitemap > sitemaps = { > 'jobs': JobPostSitemap, > } > ... # Removed other urls > url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', > {'sitemaps': sitemap

Re: location of sitemap files

2011-12-21 Thread kenneth gonsalves
On Wed, 2011-12-21 at 11:47 -0200, Andre Terra wrote: > I'm not sure I understand your question, but here's my attempt at an > answer. > > root directive in HttpCoreModule: > http://wiki.nginx.org/HttpCoreModule#root > Example nginx.conf: http://dpaste.com/hold/676259/ thanks - did it. I hope th

Re: location of sitemap files

2011-12-21 Thread Andre Terra
> > I have a site which is running nginx virtual host proxied to gunicorn. > The client has hired some SEO firm who have given me a bunch of sitemap > files that they want me to put in document root. Apache virtual hosts > define a document root, but I cannot find anything wrt ngin

location of sitemap files

2011-12-21 Thread kenneth gonsalves
hi, I have a site which is running nginx virtual host proxied to gunicorn. The client has hired some SEO firm who have given me a bunch of sitemap files that they want me to put in document root. Apache virtual hosts define a document root, but I cannot find anything wrt nginx. Any clues

mobile sitemap

2011-12-15 Thread het.oosten
Google recommends to add to every entry in a mobile sitemap. Who can help me with this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this g

Re: sitemap

2011-09-11 Thread veva...@yandex.ru
Thank You very much! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/MUltEa4dGogJ. To post to this group, send email to django-users@googlegroups.com. To un

RE: sitemap

2011-09-05 Thread Fatih ERİKLİ
> Exception Value: Reverse for 'entry' with arguments '('my 1st post',)'look at > urls.py > Date: Sun, 4 Sep 2011 22:25:50 -0700 > Subject: sitemap > From: veva...@yandex.ru > To: django-users@googlegroups.com > > Would You please

sitemap

2011-09-04 Thread veva...@yandex.ru
): return self.title @models.permalink def get_absolute_url(self): return('entry', [str(self.title)]) --- blog.sitemap.py: from django.contrib.sitemaps import Sitemap class BlogSitemap(Sitemap): changefreq = "never" priority = 0.5 def items(s

Django sitemap framework

2011-03-10 Thread Sithembewena Lloyd Dube
Hi everyone, Does Django Sitemap Framework handle paginated content? I have a Django sitemap generating URLs for articles, and the articles are paginated on the site. Thanks. -- Regards, Sithembewena Lloyd Dube -- You received this message because you are subscribed to the Google Groups

Re: Sitemap generation problem

2011-01-22 Thread urukay
Try something like this: def location(self, obj): return reverse('path.to.your.view.function', args=[category]) and put it into your sitemap.py On 21. Jan, 20:40 h., galago wrote: > I can't find out how to pass corrent location to the sitemap element. > I have

Sitemap generation problem

2011-01-21 Thread galago
I can't find out how to pass corrent location to the sitemap element. I have declared: def items(self): return Category.objects.all() How can i generate my correct urls from my urlconf file: url(r'^category/(?P[\w\-_]+)/$', 'show_category', name='show_cate

Re: sitemap() got an unexpected keyword argument 'template_name'

2011-01-17 Thread spenoir
Thanks Shawn, thats a good solution but just seems unnecessary and the docs are misleading. adam On Jan 14, 6:51 pm, Shawn Milochik wrote: > On Jan 14, 2011, at 12:19 PM, spenoir wrote: > > > I pretty sure I've set up my sitemaps correctly but I get this error > > when I try to specify a custom

Re: sitemap() got an unexpected keyword argument 'template_name'

2011-01-14 Thread Shawn Milochik
On Jan 14, 2011, at 12:19 PM, spenoir wrote: > I pretty sure I've set up my sitemaps correctly but I get this error > when I try to specify a custom template for the sitemap. anyone any > ideas? I'm using Django 1.2 Because the function declaration doesn't accept templa

sitemap() got an unexpected keyword argument 'template_name'

2011-01-14 Thread spenoir
I pretty sure I've set up my sitemaps correctly but I get this error when I try to specify a custom template for the sitemap. anyone any ideas? I'm using Django 1.2 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: XML sitemap not using correct domain name

2010-09-06 Thread Sithembewena Lloyd Dube
; > Le 6 sept. 2010 à 16:58, Sithembewena Lloyd Dube a écrit : > > Hi all, > > I added a sitemap app to my Django 1.2.1. app to and when I browse to > sitemap.xml on my development machine, Django does generate valid xml > sitemap. > However, it's using www.example.com/ in

Re: XML sitemap not using correct domain name

2010-09-06 Thread Xavier Ordoquy
Hi, You need to edit de default site name and url. By default the site application creates an www.example.com site. Just log in the admin and change it. Regards, Xavier. Le 6 sept. 2010 à 16:58, Sithembewena Lloyd Dube a écrit : > Hi all, > > I added a sitemap app to my Django 1.2.

XML sitemap not using correct domain name

2010-09-06 Thread Sithembewena Lloyd Dube
Hi all, I added a sitemap app to my Django 1.2.1. app to and when I browse to sitemap.xml on my development machine, Django does generate valid xml sitemap. However, it's using www.example.com/ in the generated links instead of my local IP address and port number. is this behaviour customi

Re: sitemap how to publish many to many field?

2009-12-11 Thread Michael
Alright, so I have taken it one step further. In the code below all the items appear in the sitemap (shops from category prepaid and shops from the category tv). Next step is to add the productgroup in the custom sitemap url (see location code). When I try to do this, only the first item of the

sitemap how to publish many to many field?

2009-12-10 Thread Michael
Hi there, I am playing around with Django's sitemap app and I have a question. When I pass a normal query in a sitemap class like Shop.objects.all() everything works fine. My problem begins when I try to publish a model with a many to many field in it. When I test this code below in the P

Paginated objects in django sitemap

2009-12-05 Thread Alessandro Ronchi
I have some objects that needs to be paginated . I want to get all my pages on my sitemap. Is there any smart way to make items(self) returns all the pages for that objects and not only the get_absoute_url without page= get variable? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo

Simple 'static' sitemap

2009-10-14 Thread Timbadu
For anyone looking for the most basic "static" sitemap you could use: Views. def dlsitemap(request): sitemap_data = open('path/to/templates/sitemap.xml',).read() return HttpResponse(sitemap_data, mimetype="text/xml") URLS (r'^sitemap\.xml$&

Re: Simple Sitemap

2009-10-12 Thread Timbadu
is unless you happen to have the sitemaps.xml file already. > > On Oct 12, 11:32 am, Timbadu wrote: > > > I need a simple sitemap for 5 URLs. The django sitemaps app seams a > > bit overkill for such a simple xml file. > > What's the best way of doing this? > > Can i

Re: Simple Sitemap

2009-10-12 Thread Adam N
You might as well use django.contrib.sitemaps. It's not difficult to use that app so there's no more efficient way to do this unless you happen to have the sitemaps.xml file already. On Oct 12, 11:32 am, Timbadu wrote: > I need a simple sitemap for 5 URLs. The django sitemaps app

Simple Sitemap

2009-10-12 Thread Timbadu
I need a simple sitemap for 5 URLs. The django sitemaps app seams a bit overkill for such a simple xml file. What's the best way of doing this? Can i simply upload a sitemaps.xml and point to it? Or should i use the django.contrib.sitemaps? T

Editable sitemap priority

2009-09-20 Thread Chris Moffitt
I'm curious if anyone has done any work in making certain aspects of the sitemap framework editable via the admin. For instance, someone might want their marketing folks to tweak the various priorities or changrefreq's of specific urls. I know it can be done by editing code and subclassi

Re: Custom url in django Django sitemap

2009-09-11 Thread Peter Coles
Ah, sorry :) You just have to write a custom Sitemap class. The docs say that it doesn't matter what type of objects are returned by items as long as your sitemap class knows how to get the necessary information from them. Read the docs here: http://docs.djangoproject.com/en/dev/ref/co

Re: Custom url in django Django sitemap

2009-09-09 Thread eli
Hi, Thanks for replay, but I was talking about the django sitemap framework http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/ , and problem: how to add my custom page (serving by server) to output (XML) of the django sitemap framework? regards. On 9 Wrz, 18:47, Peter Coles wrote

Re: Custom url in django Django sitemap

2009-09-09 Thread Peter Coles
9, 11:41 am, eli wrote: > Hi, > > How to add custom static url (they are not in database) to Django > Sitemap? for ex: /about-me.html, /contact.html, /some-static-url.html > > regards. --~--~-~--~~~---~--~~ You received this message because you are su

Custom url in django Django sitemap

2009-09-09 Thread eli
Hi, How to add custom static url (they are not in database) to Django Sitemap? for ex: /about-me.html, /contact.html, /some-static-url.html regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Sitemap index examples needed

2009-09-07 Thread Oleg Oltar
) is_published = models.BooleanField() section = models.ForeignKey(Section) I need to create a sitemap for articles, which contains sitemap files for sections. I was reading django documentation about it here http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/ But didn't m

Django HTML Sitemap Generator?

2009-02-12 Thread Alfonso
Anyone know of an easy way/pluggable app that can generate a simple html sitemap output? I've used the sitemap module of Django to generate the .xml just fine - but surely I can manipulate that to get a html output to drop in a template? T

Duplicating sitemap dictionary with a get variable

2009-01-14 Thread Alessandro Ronchi
I have a sitemap dictionary. I want to add in my sitemap.xml an url for every url of my sitemap with a ?lang=en ending. Is it possible? So, if my sitemap contains: http://www.detectorpoint.com/ http://www.detectorpoint.com/about/ I want my sitemap to contain: http://www.detectorpoint.com/ http

Sitemap Index problems

2007-08-04 Thread Mackenzie Kearl
Hi I am trying to get a sitemap index generated however I only get "Exception Type:ValueError Exception Value:Empty module name" I am not sure what I am doing wrong. urls.py sitemaps = { 'blog':BlogSitemap, 'gallery':GallerySitem

Re: Sitemap questions (probably dumb ones)

2007-06-16 Thread David Larlet
2007/6/16, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > > > Any thoughts about this implementation? > > I think you could get rid of FakeObject() completely: > > class MainSitemap(Sitemap): > priority = 0.8 > > def items(self)

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread John DeRosa
David Larlet wrote: > > > Thanks for your suggestion, I've just done that: > > class FakeObject(object): > def __init__(self, url): > self.url = url > > class MainSitemap(Sitemap): > priority = 0.8 > > def

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread David Larlet
2007/6/15, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > 2007/6/13, John DeRosa <[EMAIL PROTECTED]>: > >> David Larlet wrote: > >>> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >>>> I've been playing

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread John DeRosa
David Larlet wrote: > 2007/6/13, John DeRosa <[EMAIL PROTECTED]>: >> David Larlet wrote: >>> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >>>> I've been playing with the sitemap stuff and am finding it to be quite >>>> slick.

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread David Larlet
2007/6/13, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >> I've been playing with the sitemap stuff and am finding it to be quite > >> slick. I do, however, have some questions

Re: Sitemap questions (probably dumb ones)

2007-06-13 Thread John DeRosa
David Larlet wrote: > 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> I've been playing with the sitemap stuff and am finding it to be quite >> slick. I do, however, have some questions about some unusual cases. >> >> 1)It works beautifully for listi

Re: Sitemap questions (probably dumb ones)

2007-06-12 Thread David Larlet
2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > I've been playing with the sitemap stuff and am finding it to be quite > slick. I do, however, have some questions about some unusual cases. > > 1)It works beautifully for listing all the detail pages that make up a &

Re: sitemap for django 0.95.1

2007-05-07 Thread James Bennett
On 5/7/07, Paul Rauch <[EMAIL PROTECTED]> wrote: > if you take a look at the first line of > http://www.djangoproject.com/documentation/sitemaps/ > there is written: "New in Django development version" > meaning: No, not even in 0.96 That's incorrect. The sitemaps app was part of Django 0.96. It

Re: sitemap for django 0.95.1

2007-05-07 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mary schrieb: > Does the sitemap work for version 0.95.1 > Casue when i went to this url > http://www.djangoproject.com/documentation/0.95/sitemaps/ > it gave me error page > > Thanks you in advance ; > Mary Adel > >

sitemap for django 0.95.1

2007-05-07 Thread Mary
Does the sitemap work for version 0.95.1 Casue when i went to this url http://www.djangoproject.com/documentation/0.95/sitemaps/ it gave me error page Thanks you in advance ; Mary Adel --~--~-~--~~~---~--~~ You received this message because you are subscribed

using sitemap with i18n

2007-03-13 Thread [EMAIL PROTECTED]
Hello, How could I get the sitemap feature working for my i18n site ? I use the standard django setup for my i18n, and that works via cookies, and as far as I see, google sitemaps do not work with cookies. Any clue where I could find some more information ? With regards, Robbin

using sitemap with i18n

2007-03-13 Thread [EMAIL PROTECTED]
Hello, How could I get the sitemap feature working for my i18n site ? I use the standard django setup for my i18n, and that works via cookies, and as far as I see, google sitemaps do not work with cookies. Any clue where I could find some more information ? With regards, Robbin

i18n sitemap

2007-02-28 Thread [EMAIL PROTECTED]
Hello, How could I get the sitemap feature working for my i18n site ? I use the standard django setup for my i18n, and that works via cookies, and as far as I see, google sitemaps do not work with cookies. Any clue where I could find some more information ? With regards, Robbin

Sitemap questions (probably dumb ones)

2006-12-07 Thread [EMAIL PROTECTED]
I've been playing with the sitemap stuff and am finding it to be quite slick. I do, however, have some questions about some unusual cases. 1)It works beautifully for listing all the detail pages that make up a list view, but what about the page that takes the list view? In my case, For ex

Sitemap Index with Cache gives a NoReverseMatch exception

2006-09-10 Thread Jay Klehr
Hello, Following the djangoproject.com Sitemap example and the documentation on Sitemaps I'm trying to implement a caching Sitemap Index that will link out to other Sitemaps for my site (one for each main model basically). I had the Sitemap Index working with the separate sitemaps just