Sunday, February 1, 2015
Re: Problem with sitemap.xml in django project.
1. 'django.contrib.sites' is in INSTALLED_APPS
2. Your site has the proper domain (look in /admin/ and fix it if needed)
3. In your settings.py make sure SITE_ID matches the site you
configured in /admin/
On Sun, Feb 1, 2015 at 12:08 PM, José Luis
<j.luis.requena.marketing@gmail.com> wrote:
> I am deploying a Django project with Gunicorn + Nginx. I create a
> sitemap.xml file with the sitemap framework. I use a 127.0.0.1:8001 proxy so
> when i access to example.com/sitemap.xml the result is similar to this:
>
>
>
>
>
> <url>
> <loc>
> http://127.0.0.1:8001/service/item/gestionar_apertura_de_academia
> </loc>
> <changefreq>monthly</changefreq>
> <priority>0.5</priority>
> </url>
>
>
> When i add sitemap.xml to the Google index in Google Webmaster Tools, Google
> does not allow the sitemap.xml because the domain in location tag is
> 127.0.0.1:8001 and not my domain.
>
> Is there any solution to this problem?
>
> I've posted this question in StackOverFlow too:
> http://stackoverflow.com/questions/28263869/sitemap-xml-file-in-django-gunicorn-nginx-web
>
> Thank you so much for your help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/685515fd-89f4-4a62-99e0-d13a1b7ca643%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD4ANxV3w_xDo4nKGVcLRhNxe%3DiWqZgHqZckm5_KGW4rQrBWWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: Problem with sitemap.xml in django project.
That makes perfect sense as to why Google would reject it. You would need to make your site live, and generate the site map using the real domain name, otherwise Google has nothing to index against. The address you provided is either a local proxy or the dev server running on port 8001 on your local machine, neither of which Google has access to, making the site map useless for them.
You could modify the site map manually with the real domain name, but you would need to make sure the site map matches what's on your site.
-James
--I am deploying a Django project with Gunicorn + Nginx. I create a sitemap.xml file with the sitemap framework. I use a 127.0.0.1:8001 proxy so when i access to example.com/sitemap.xml the result is similar to this:
<changefreq>monthly</changefreq><priority>0.5</priority></url>
When i add sitemap.xml to the Google index in Google Webmaster Tools, Google does not allow the sitemap.xml because the domain in location tag is 127.0.0.1:8001 and not my domain.
Is there any solution to this problem?
I've posted this question in StackOverFlow too: http://stackoverflow.com/questions/28263869/sitemap-xml-file-in-django-gunicorn-nginx-web
Thank you so much for your help
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/685515fd-89f4-4a62-99e0-d13a1b7ca643%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVLkOTY6Mo9D_YenHRvS3aKgiJXpG9jGGnsrdXE18Qbcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Kickstarter: Django opensource improved import-export package
https://www.kickstarter.com/projects/1625615835/django-opensource-improved-import-export-package
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cd204151-2f8f-485a-a004-2a099d4d5e0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Problem with sitemap.xml in django project.
I am deploying a Django project with Gunicorn + Nginx. I create a sitemap.xml file with the sitemap framework. I use a 127.0.0.1:8001 proxy so when i access to example.com/sitemap.xml the result is similar to this:
<url>
<loc>http://127.0.0.1:8001/service/item/gestionar_apertura_de_academia</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>When i add sitemap.xml to the Google index in Google Webmaster Tools, Google does not allow the sitemap.xml because the domain in location tag is 127.0.0.1:8001 and not my domain.
Is there any solution to this problem?
I've posted this question in StackOverFlow too: http://stackoverflow.com/questions/28263869/sitemap-xml-file-in-django-gunicorn-nginx-web
Thank you so much for your help
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/685515fd-89f4-4a62-99e0-d13a1b7ca643%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Initial stages of django
Buddy Lindsey at GoDjango.com has free (and more advanced paid) video tutorials that are short but highly informative.
Tobias Abdon's ultimatedjango.com is a step-by-step tutorial for building a CRM app (the basic Django tutorial seems to now be available with registration to a newsletter, more features, source code and additional courses are available in paid packages).
Teamtreehouse.com has online Python classes lead by Kenneth Love (free trial available)
No affiliation to any other than as a subscriber or customer.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bd863733-c2f7-48b9-afdc-3146a428c988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Save one to one field manually
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5affea74-c6bf-4712-bdc0-d47f74bb8a61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: Reduce start up time for manage.py
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fce21c8e-a423-4db6-953e-5c387a82ab55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
