Re: django.db.utils.OperationalError when remove the parent model

2016-09-13 Thread Cheng-Hung Hsueh
I tyied with some new filed in model B. class A(models.Model): data = models.CharField(max_length=30) class B(A): data2 = models.CharField(max_length=30) to class A(models.Model): data = models.CharField(max_length=30) class B(models.Model): data2 =

Re: django.db.utils.OperationalError when remove the parent model

2016-09-13 Thread Simon Charette
Hi Cheng-Hung, This is know bug[1] Simon [1] https://code.djangoproject.com/ticket/24424 Le mardi 13 septembre 2016 22:02:54 UTC-4, Cheng-Hung Hsueh a écrit : > > The sample project: > https://github.com/sih4sing5hong5/django_migration_error > -- You received this message because you are

Re: django.db.utils.OperationalError when remove the parent model

2016-09-13 Thread Cheng-Hung Hsueh
The sample project: https://github.com/sih4sing5hong5/django_migration_error -- 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.db.utils.OperationalError when remove the parent model

2016-09-13 Thread Cheng-Hung Hsueh
My original models like this class A(models.Model): data = models.CharField(max_length=30) class B(models.Model): pass Make migrations, then I modified the artitecture class A(models.Model): data = models.CharField(max_length=30) class B(models.Model): pass Make migration and

Re: Abridged summary of django-users@googlegroups.com - 35 updates in 12 topics

2016-09-13 Thread juliana kofi
hello am trying to upload photos on my blog how do i do that using django and python On Tue, Sep 13, 2016 at 3:10 PM, wrote: > django-users@googlegroups.com > > Google >

Re: GeoDjango has few problems on Django 1.11-dev version

2016-09-13 Thread Satish
Thanks Tim! Will note your suggestion for future posts. On Tuesday, 13 September 2016 20:53:31 UTC+5:30, Tim Graham wrote: > > Thanks, I accepted the ticket you created. Next time, please don't reach > out for help in multiple channels since it increases the chance that > multiple people will

Re: GeoDjango has few problems on Django 1.11-dev version

2016-09-13 Thread Tim Graham
Thanks, I accepted the ticket you created. Next time, please don't reach out for help in multiple channels since it increases the chance that multiple people will duplicate effort investigating the issue. https://code.djangoproject.com/ticket/27217 On Tuesday, September 13, 2016 at 11:00:15 AM

Re: GeoDjango has few problems on Django 1.11-dev version

2016-09-13 Thread Tim Graham
I'm not aware of any bugs or regressions. Could you provide a sample project that we can use to reproduce that issue? Does you have the same issue with older versions of Django? On Tuesday, September 13, 2016 at 9:23:38 AM UTC-4, Satish wrote: > > Hi, > > Am a starting a new Django project, I

Re: Creation of default site not triggering post_save signal

2016-09-13 Thread Simon Charette
Hi Matt, The recommended pattern is to register signal receivers in your app config's ready() method[1]. From the Django documentation: > Where should this code live? > > Strictly speaking, signal handling and registration code can live anywhere you > like, although it’s recommended to avoid

Problem with migration to Django 1.8

2016-09-13 Thread alessandro . henrique
Hello, I'm currently trying to migrate a project from django 1.5.1 to the newest version. I got stuck in the version 1.7. The only test that is not passing was made to try to get the e-mail from an admin: @pytest.mark.django_db @pytest.mark.admin_client def

Re: how to display models in templates

2016-09-13 Thread Timothy Steele
thank you very mach it has work. i am most grateful, any way this did not let me sleep the hole night On Tuesday, September 13, 2016 at 8:33:53 AM UTC+1, Timothy Steele wrote: > > please i try my best but i can display my models in a templates i have > just created. > > *Please have a look at

Re: how to display models in templates

2016-09-13 Thread ludovic coues
Yeah, it's because of |pprint. It is a debug tools. It can help with a few issue like model not having a __str__ method (not your case). It also show how many item are in the queryset (one in your case). Now that you found the error, you can remove it 2016-09-13 10:30 GMT+02:00 Timothy Steele

Re: how to display models in templates

2016-09-13 Thread Timothy Steele
thanks i have seen it, but i need to only display *Packt Publishing* but it give this ** in addition On Tuesday, September 13, 2016 at 8:33:53 AM UTC+1, Timothy Steele wrote: > > please i try my best but i can display my models in a templates i have > just created. > > *Please have a look at

Re: how to display models in templates

2016-09-13 Thread ludovic coues
Sorry, I should have double checked instead of copy/pasting. {% for bookmark in bookmaks %} < you forgot a r in bookmarks. 2016-09-13 10:00 GMT+02:00 Timothy Steele : > >

Re: how to display models in templates

2016-09-13 Thread Timothy Steele
please i like your help but it now return in the database, but in can see the name of the bookmark but how can i do away with the QuerySet please On Tuesday, September

Re: Django with digital certificates

2016-09-13 Thread Erik Cederstrand
> Den 12. sep. 2016 kl. 15.24 skrev Dimitris Kougioumtzis : > > I have an application with django framework. The users have in their usb > sticks their certificates. How to access their certificates from the django > application to the client computer Do you have a Django

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-13 Thread Mike Dewhirst
On 13/09/2016 4:06 PM, Hanh Kieu wrote: "So your Translation needs a FK to each of two different words. " What would this look like? class Translation(models.Model): #word1 belongs to one word word1 = models.ForeignKey(Word, on_delete=models.CASCADE, related_name="Translation_word1")

Re: how to display models in templates

2016-09-13 Thread ludovic coues
Can you try this in your template ? {{ bookmarks|pprint }} {% for bookmark in bookmaks %} {{ bookmark|pprint }} {% endfor %} Also, in your for loop, you use bookmarks.title, notice the s. 2016-09-13 9:33 GMT+02:00 Timothy Steele : > please i try my best but i

how to display models in templates

2016-09-13 Thread Timothy Steele
please i try my best but i can display my models in a templates i have just created. *Please have a look at the codes in the models.py file* from django.db import models from django.contrib.auth.models import User # Create your models here. class Link(models.Model):

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-13 Thread Hanh Kieu
"So your Translation needs a FK to each of two different words. " What would this look like? On Monday, September 12, 2016 at 10:42:10 PM UTC-7, Mike Dewhirst wrote: > > On 13/09/2016 3:02 PM, Hanh Kieu wrote: > > Hey guys, I'm creating a translation app that allows you to translate > > from