Re: Is it an error by Django?

2017-10-06 Thread utpalbrahma1995

Well Lachlan Thank you very much.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f59a88f1-2ad1-4fec-a044-de3bf7b809f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it an error by Django?

2017-10-06 Thread utpalbrahma1995
I have a doubt

As per your given link i guess it should be like content=' b '


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/49b79dcb-ea76-43b6-9dd7-030a9757e310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it an error by Django?

2017-10-06 Thread Andréas Kühne
Hi,

No, the correct format is   content=b''  otherwise you would just
be default content to a string that equals "b". It says that there is no
encoding on the string afterwards and it is a byte string. It works the
same way Python 2 used to do with unicode strings, in that case it was 
content=u'' 

Regards,

Andréas

2017-10-06 12:57 GMT+02:00 :

> I have a doubt
>
> As per your given link i guess it should be like content=' b '
> 
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/49b79dcb-ea76-43b6-9dd7-030a9757e310%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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCdwwzZdmPpm8%3DYY_AQuGsDyeLBbLV6ecoSn0iHHwAz91w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hello All - Wordpress to Django Python Web Developer

2017-10-06 Thread Oladipupo Elegbede
In my opinion, The tutorial starting out wouldn't answer all your questions
but put you in the know of what happens in the django world.

Armed with that, you can begin to test things out as your needs dictate and
then you are able to ask direct questions.

What the kind of tutorial you're looking for may not do for you is take you
through the rudiments something you will gain going through the tutorials.

So, hold on to the image update part of your quest, take the tutorial,
understand the workings of django.

All the best.

On Fri, Oct 6, 2017 at 12:02 AM, Mar Roble 
wrote:

>
> Hello all,
>
> My name is Mar Roble and I ma glad to be here.
>
> This may seem crazy but I am trying to leave WordPress to Python/Django.
> Totally new to this development.
> I know html, CSS and PHP all basics, enough to get things done on
> WordPress.  Now, what I got myself into?
>
> I have researched and have no answer to some things, did not find one
> solution.
>
> Already installed Python, pip, django and created a a project and set up
> environment variable path in the windows system.  I am ready so far.  I
> found this tutorial below.
>
> https://docs.djangoproject.com/en/1.11/intro/tutorial01/
>
> But I really want something like the image file attached not polls which
> is what the tutorial is about.
>
> My two questions.
>
> 1) Is there a tutorial that I can follow to make a personal blog website?
> If there is where?  I am taking a Python a lesson at EDX and going through
> the challenges on pythong challenge at the moment.  Hopefully, in six to a
> year, I will be efficient but for now, totally green, know other than basic
> syntax.
>
> 1) How does the hosting work for Python/Django?  The Framework and hosting
> in one place?
>
> I am usually figure things out guy, this time I want to focus learning and
> developing rather than wasting ton of time Googling stuff, I highly
> appreciate any help.
>
> Thank you in advance.
>
> Mar Roble
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/58028e5e-ba58-452b-81b5-636d6ded6630%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Elegbede Muhammed Oladipupo

web: www.dipoelegbede.com
skype: dipo.elegbede
mobile: (917) 860 1542

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHjgLX6CsDuPPhQKwEGPs_VQWzGkh9W6LFDoW_1p3mW%3DNR-tsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Hello All - Wordpress to Django Python Web Developer

2017-10-06 Thread Daniel Roseman
You probably want the Djangogirls tutorial. It takes you though building a 
blog, and includes deploying it to a host.

The early sections are a basic introduction to programming but you can skip 
those.

Find it here: https://tutorial.djangogirls.org
--
DR.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/645cc1b9-2fdf-4d0e-8d84-6deab02efbfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hello All - Wordpress to Django Python Web Developer

2017-10-06 Thread Gerardo Palazuelos Guerrero
hi,
I have one suggestion, check the following link
https://www.twoscoopspress.com/pages/django-tutorials

Currently I´m working on the djangogirls tutorial (which is very good).

Good luck.



--
Gerardo Palazuelos Guerrero


On Fri, Oct 6, 2017 at 8:29 AM, Daniel Roseman 
wrote:

> You probably want the Djangogirls tutorial. It takes you though building a
> blog, and includes deploying it to a host.
>
> The early sections are a basic introduction to programming but you can
> skip those.
>
> Find it here: https://tutorial.djangogirls.org
> --
> DR.
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/645cc1b9-2fdf-4d0e-8d84-6deab02efbfe%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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJ8iCyMAhNhLCtpK%2B5Z1MQPHJYeea%2BqdqfNMc1XNOr7U9FC0pQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


how to add cms.urls integrated in my django application to sitemap.xml

2017-10-06 Thread GAFSI Omar


down votefavorite 


I have this in my django project : In views.py :

   class MediatorViewSitemap(Sitemap):
changefreq = 'monthly'
priority = 0.8
def items(self):
return Mediator.objects.exclude(photo='')
def lastmod(self, obj):

return obj.modified

static_list 
=['home','mediators_list','about','faq','pricing','terms','privacy','contact',
]

class StaticViewSitemap(Sitemap):
priority = 0.5
changefreq = 'daily'
def items(self):
return static_list
def location(self, item):
return reverse(item)

And this in my urls.py

sitemaps = {'mediators': MediatorViewSitemap,'static': StaticViewSitemap
}
   url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps},
name='django.contrib.sitemaps.views.sitemap'),

And it generate very well my sitemap.xml

Now i have integrated djangocms to my django project, so i have this url in 
the same urls.py :

url(r'^blog/', include('cms.urls')),

What i want is to add it to the same sitemap.xml, any suggestion of any 
tutorial or help from anyone ?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cc7cb923-a23d-49e8-b63b-38e1b4a65ce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django queryset returning corrupted value

2017-10-06 Thread Web Architect
Hi,

We have running an ecommerce site using Django 1.8.13. It has been running 
fine for a year. But suddenly the django querysets are returning corrupted 
values. I am completely clueless why this is happening. Like a model field 
is of type SlugField but queryset is returning long. 

Would really appreciate if anyone could throw some light on how to fix the 
above issue. When I check the values in MySQL DB using PhpMyAdmin and 
everything is fine. 

Thanks,
Pinakee

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/31e38550-5759-47fb-8aac-634222f538e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django queryset returning corrupted value

2017-10-06 Thread Antonis Christofides
Hi,

could you show the code that defines the slugfield, the queryset that is 
returning the wrong value, full error message and traceback (if available), and 
the version of your OS and RDBMS?

It doesn't matter if the problem is more general; let's focus on one specific 
manifestation of it.

Regards,

Antonis

On October 6, 2017 8:16:20 PM GMT+03:00, Web Architect  
wrote:
>Hi,
>
>We have running an ecommerce site using Django 1.8.13. It has been
>running 
>fine for a year. But suddenly the django querysets are returning
>corrupted 
>values. I am completely clueless why this is happening. Like a model
>field 
>is of type SlugField but queryset is returning long. 
>
>Would really appreciate if anyone could throw some light on how to fix
>the 
>above issue. When I check the values in MySQL DB using PhpMyAdmin and 
>everything is fine. 
>
>Thanks,
>Pinakee
>
>-- 
>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+unsubscr...@googlegroups.com.
>To post to this group, send email to django-users@googlegroups.com.
>Visit this group at https://groups.google.com/group/django-users.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/31e38550-5759-47fb-8aac-634222f538e3%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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/13159934-0A12-41DF-91FD-2436E9C1B020%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


django_tables2: Unable to manually iterate through column values in template

2017-10-06 Thread Ken
Hi all

I came to django_tables2 via django_tables.

There are a few occasions when I want to manually iterate through the 
columns of each row of a table in my template.  I've always done this using:

{% for row in table.rows %}{{ row.det_id }}{% endfor %}


It's worked OK in my code for years - on Django 1.9 and django_tables2 1.1.1

However, I recently upgraded to django_tables2 1.10, and this no longer 
works.  (I just get empty fields - not even hyphens.)

How do I do the iteration now?  If I am required to do this completely 
differently, then the migration info from django_tables to django_tables2 
is now misleading.

Cheers,

Ken


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5267310d-a954-478c-b350-5dc5d1dfd53b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.