Re: Static files not rendering in project

2018-07-06 Thread Xarala Academy
Hi friend, Try to change {{STATIC_URL}} to Thanks. -- 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

Static files not rendering in project

2018-07-06 Thread useracct222
For whatever reason, after many hours of troubleshooting, I cannot seem to insert a local static file into a template or raw html with "img src". An image via a web url renders fine. Here are the relevant details: Ownership of files is of the main user. Images are in the user's home folder and

Re: wagtail of django view for blog?

2018-07-06 Thread Umar Kambala
Mr Tom thanks very much. It has helped me alot On Jul 6, 2018 1:27 PM, "TimT Vogt" wrote: > Try this > > https://www.valentinog.com/blog/django-missing-argument-on-delete/ > > Verstuurd vanaf mijn iPhone > > Op 6 jul. 2018 om 14:55 heeft Umar Kambala het > volgende geschreven: > > mr Tim can u

Re: tests pass individually but fail together

2018-07-06 Thread clavierplayer
Hi Melvyn, I've been working on getting permission to post the code, but everybody who can do that is on vacation at present, unfortunately. I'm hoping somebody will be back to work on Monday. I did try the test --parallel 1, but that didn't help. The problem tests all cover a particular

Re: I can't see my models in MySQL db

2018-07-06 Thread Phako Perez
Hi Azimzadeh, I’m also new in Django but I notice you referred to app as django-sb-admin and you added in settings as django_sb_admin Just want to point the mismatch in name, your app is with ‘-‘ whereas installed apps has ‘_’, issue could be this mismatch? As python itself is key sensitive

RE: help

2018-07-06 Thread Matthew Pava
You need to add the on_delete keyword argument to the ForeignKey. https://docs.djangoproject.com/en/2.0/ref/models/fields/#django.db.models.ForeignKey.on_delete From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Avi gehlot Sent: Friday, July 6, 2018 10:16 AM

Re: help

2018-07-06 Thread Avi gehlot
Because you run your project pyathon manage.py Than this error generate you open your project than >settings scroll down than app name write your project working properly On Thu, 5 Jul 2018, 16:48 Umar Kambala, wrote: > please this what i had after running my Django-admin startproject myproject

Re: help

2018-07-06 Thread Avi gehlot
Foreign key not working properly On Fri, 6 Jul 2018, 16:43 Umar Kambala, wrote: > please this the error i got when i run python manage.py makemigrations > > File > "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py", > line 371, in

Re: Django DateField

2018-07-06 Thread Swati Pushp
you want date auto genrate ?? On 6 July 2018 at 20:16, 'dtdave' via Django users < django-users@googlegroups.com> wrote: > Many thanks for the help on this. I have implemented the following: > models.py > start_date = models.DateField(null=True, blank=True,) > asap =

Re: Django DateField

2018-07-06 Thread Melvyn Sopacua
On vrijdag 6 juli 2018 16:46:08 CEST 'dtdave' via Django users wrote: > Many thanks for the help on this. I have implemented the following: > models.py > start_date = models.DateField(null=True, blank=True,) > asap = models.BooleanField(default=False) > > I have amend my manager so the order is

Re: help

2018-07-06 Thread pushpswati
Hi, Before migrate you have to run python manage.py makemigrations this command after you will run migrate or runserver. On Thursday, 5 July 2018 16:48:47 UTC+5:30, Umar Kambala wrote: > > please this what i had after running my Django-admin startproject myproject > > File >

Re: Django DateField

2018-07-06 Thread 'dtdave' via Django users
Many thanks for the help on this. I have implemented the following: models.py start_date = models.DateField(null=True, blank=True,) asap = models.BooleanField(default=False) I have amend my manager so the order is right on the template. The template is where I am going wrong. This what I have

Re: Django DateField

2018-07-06 Thread Bill Torcaso
I wonder if this would work: represent ASAP as a legitimate DateTime value that is, say, 100 years in the future. Then a simple reverse sort will display all of the ASAP tasks before any others. This is a hack, and nothing but a hack. But you could implement it in five minutes. On

Re: help

2018-07-06 Thread Gerald Brown
At https://docs.djangoproject.com/en/2.0/ref/models/fields/ it lists a list of various options, and Protect is one of the options so, yes you are correct.  However PROTECT prevents that record from being deleted so you might want to use CASCADE instead of PROTECT. On Friday, 06 July, 2018

Re: wagtail of django view for blog?

2018-07-06 Thread TimT Vogt
Try this https://www.valentinog.com/blog/django-missing-argument-on-delete/ Verstuurd vanaf mijn iPhone > Op 6 jul. 2018 om 14:55 heeft Umar Kambala het > volgende geschreven: > > mr Tim can u help? > i have this codes but gets error > > from django.db import models > from

Re: wagtail of django view for blog?

2018-07-06 Thread Umar Kambala
mr Tim can u help? i have this codes but gets error from django.db import models from django.contrib.auth.models import User class Board(models.Model): name = models.CharField(max_length=30, unique=True) description = models.CharField(max_length=100) class Topic(models.Model):

Re: help

2018-07-06 Thread Kasper Laudrup
Hi Umar, On 07/06/2018 02:14 PM, Umar Kambala wrote: Please am sorry, am new to django I hvnt understood what u mean. If u could further explain it to me. Thanks Which part don't you understand? I'm far from an expert on relational databases, but you need at least some understanding of

Re: help

2018-07-06 Thread Umar Kambala
And I still gets de same error On Jul 6, 2018 12:42 PM, "Umar Kambala" wrote: > Please this wat I now hv am I correct? > > On_delete = models.PROTECT > On Jul 6, 2018 11:28 AM, "Gerald Brown" wrote: > > In any field that is a ForeignKey you now have to add "on_delete = ???" > (there are a

Re: help

2018-07-06 Thread Umar Kambala
Please this wat I now hv am I correct? On_delete = models.PROTECT On Jul 6, 2018 11:28 AM, "Gerald Brown" wrote: In any field that is a ForeignKey you now have to add "on_delete = ???" (there are a number of options to replace the ???). See the last line of the error message as it shows you

Re: Smart Selects

2018-07-06 Thread Satheesh Eppalapelli
added 'smart_selects' app in settings.py and put a comma at the end. Kind Regards, Satheesh Eppalapelli On Fri, Jul 6, 2018 at 5:57 PM, vimal devapp raj wrote: > Hi Team, > > I am using django smart select with django version : 1.6.1 > > django-smart-selects (1.5.4) version > > *ERROR :

Smart Selects

2018-07-06 Thread vimal devapp raj
Hi Team, I am using django smart select with django version : 1.6.1 django-smart-selects (1.5.4) version *ERROR : ImportError: No module named apps* models.py from smart_selects.db_fields import ChainedForeignKey class Continent(models.Model): name =

Re: help

2018-07-06 Thread Umar Kambala
Please sorry am new to django, if u could further explain it to me. Thanks On Jul 6, 2018 11:39 AM, "Anirudh choudhary" wrote: > Add on_delete = models.CASCADE > EVERY WHERE YOU ARE USING FOREIGN KEY > > On Fri, 6 Jul 2018, 4:43 p.m. Umar Kambala, wrote: > >> please this the error i got when i

Re: help

2018-07-06 Thread Umar Kambala
Please am sorry, am new to django I hvnt understood what u mean. If u could further explain it to me. Thanks On Jul 6, 2018 11:42 AM, "rahul sawra" wrote: > You can Also Use on_delete= models.PROTECT whereever You use ForeignKey! > > On Fri, 6 Jul 2018 at 5:09 PM, Anirudh choudhary < >

Re: help

2018-07-06 Thread rahul sawra
You can Also Use on_delete= models.PROTECT whereever You use ForeignKey! On Fri, 6 Jul 2018 at 5:09 PM, Anirudh choudhary < anirudhchoudary...@gmail.com> wrote: > Add on_delete = models.CASCADE > EVERY WHERE YOU ARE USING FOREIGN KEY > > On Fri, 6 Jul 2018, 4:43 p.m. Umar Kambala, wrote: > >>

Re: help

2018-07-06 Thread Anirudh choudhary
Add on_delete = models.CASCADE EVERY WHERE YOU ARE USING FOREIGN KEY On Fri, 6 Jul 2018, 4:43 p.m. Umar Kambala, wrote: > please this the error i got when i run python manage.py makemigrations > > File >

Re: help

2018-07-06 Thread Gerald Brown
In any field that is a ForeignKey you now have to add "on_delete = ???" (there are a number of options to replace the ???). See the last line of the error message as it shows you the file and line number of where the error is. On Friday, 06 July, 2018 07:13 PM, Umar Kambala wrote: please

help

2018-07-06 Thread Umar Kambala
please this the error i got when i run python manage.py makemigrations File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py", line 371, in execute_from_command_line utility.execute() File

If any one have experience with Django treebeard package

2018-07-06 Thread pranay reddy
Plz expalin how to add child for siblingSent via the BlackBerry Hub for Android -- You received this message because you are

Re: Is there a way to find out if a Django site is built with Django CMS looking trough the source code?

2018-07-06 Thread TimT Vogt
Django cms has drag an drop backend https://control.divio.com/demo/get-new/ Tim Officerebels.nl Verstuurd vanaf mijn iPhone > Op 4 jul. 2018 om 21:51 heeft Brandon het volgende > geschreven: > > Hello Carlo, > > How can you tell the difference? > Unless I am looking at the google images