Re: Any free MAP API available

2020-06-03 Thread meera gangani
you can use* Geo-Django *Library available in django


On Thu, Jun 4, 2020 at 3:15 AM Ram  wrote:

> Hi,
>
> We need to add location map based on the zip code in our DJango web
> application. Is there any free API available out there? if you have used it
> already could you suggest one?
>
> Thanks,
> ~Ram
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F02G9gW64FAPfKYHjEGf28hp34ePmg%3Dd%2BtVtHNSEs%2BqQg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPKaoD3WGBis436dRPzyc96UsKq6SUg8RfyFV%2BkvPC1gsA%40mail.gmail.com.


Any free MAP API available

2020-06-03 Thread Ram
Hi,

We need to add location map based on the zip code in our DJango web
application. Is there any free API available out there? if you have used it
already could you suggest one?

Thanks,
~Ram

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BOi5F02G9gW64FAPfKYHjEGf28hp34ePmg%3Dd%2BtVtHNSEs%2BqQg%40mail.gmail.com.


Configure a VPS

2020-06-03 Thread Giovanni Silva
I need to deploy a django application on my vps server

alguém tem algum passo a passo de como configurar o VPS?  my system is
windows

-- 
*Giovanni Silva*
(31) 9 9532-1877

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABO2r9dQAq04rAKjE_Acg8H6Etnf3wM7rkAcDrW1oR63j1FnUA%40mail.gmail.com.


Re: django-tenants domain issue

2020-06-03 Thread Dumba Classics
Thank you Sir you are a life saver


On Wed, Jun 3, 2020 at 11:49 AM Andréas Kühne 
wrote:

> You just need to add those to your hosts file locally on your computer.
>
> If you are using Mac:
> https://www.imore.com/how-edit-your-macs-hosts-file-and-why-you-would-want
>
> If you are using Linux:
> https://support.rackspace.com/how-to/modify-your-hosts-file/
>
> If you are using Windows:
> https://support.rackspace.com/how-to/modify-your-hosts-file/
>
>
> The hosts d.dumba.local and td.test.local both need to point to 127.0.0.1
> and you are set.
>
> Regards,
>
> Andréas
>
>
> Den ons 3 juni 2020 kl 02:56 skrev DumbaClassics  >:
>
>> Hello Family
>>
>> I have been following a set up documentation for django-tenants. I did
>> all the set-up to even create a public domain and two tenant domains. For
>> allowed hosts I put ["*"] , though not safe as per clinical research data
>> its convinient for my localhost Test. I am having a challenge navigating to
>> all my domains. The usual http://127.0.0.1: 8000/ gives me No tenant for
>> hostname "127.0.0.1" which is of course reasonable...say my domain name for
>> public is d.dumba.local and the tenant one td.test.local what would be the
>> way to navigating to these domains.
>>
>> Your cooperation will be appreciated
>>
>> Sincerly D.C
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/aafcef35-db62-4e0d-a744-0e94609dc9ab%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAK4qSCd0ZDrim_L66-Yq%3DPyk%2BQ2K0i2s2rEfs1Gf4L%2BArXAukQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMLk3fxxZC6GA%3DD08v5zvQ6L0yKxvVv2AcAjYwSAvgrBxfvNEA%40mail.gmail.com.


Re: Model Arithmetic Operation

2020-06-03 Thread Dumba Classics
Inbox me with your objective on what you want to accomplish and give me the
the piece of code trying to emulate your two models and then I will look
into your code and give the Solution if I can.

Sincerely D.C

On Wed, Jun 3, 2020 at 5:12 AM Hella Nick  wrote:

>
>-
>
>Niggers are clearly not suited for the job.
>
>
> Ifeanyi Chielo  于2020年6月3日周三 上午7:43写道:
>
>> Dear all,
>>
>> Hello, please can someone help me with the code to subtract  'b' from 'a'
>> as shown below
>>
>>
>> a = Soapprod.objects.aggregate(Sum('Serial_White_Guava'))
>>
>>
>>
>> b = Soapsales.objects.aggregate(Sum('Serial_White_Guava'))
>>
>>
>>
>> class Soapprod (models.Model):
>>
>> id = models.AutoField(primary_key=True)
>>
>> Serial_White_Guava  = models.PositiveIntegerField()
>>
>> Serial_White_Premium= models.PositiveIntegerField()
>>
>> Soft_Flower_Body_Wash   = models.PositiveIntegerField()
>>
>> Soft_Flower_Fresh   = models.PositiveIntegerField()
>>
>> Soft_Flower_Orange_Lightening   = models.PositiveIntegerField()
>>
>> Soft_Flower_Carot_Lightening= models.PositiveIntegerField()
>>
>> Soft_Flower_Papaya_Extract  = models.PositiveIntegerField()
>>
>> Soft_Flower_Extra_Lightening= models.PositiveIntegerField()
>>
>> Serial_White_Papaya_4in1= models.PositiveIntegerField()
>>
>> date= models.DateField(default
>>  = date.today)
>>
>>
>>
>> def __str__(self):
>>
>> return self.serial_white_guava
>>
>>
>>
>> class Soapsales (Soapprod):
>>
>> SOAP_MARKETER_STATUS = (
>>
>> ('M', 'Marketers'),
>>
>> ('D', 'Distributor'),
>>
>> ('A', 'Distributor_B'),
>>
>> ('B', 'Distributor_C'),
>>
>> )
>>
>> soap_marketer_status = models.CharField(max_length=1, choices
>> =SOAP_MARKETER_STATUS)
>>
>>
>>
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1c978c25-cbb4-41bd-ab01-b49aa6365826%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHfGPEfi9UkV0dd89KVnNRoNMJMJMNGhd63JWMQAVaDjYURw3g%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMLk3fzVHR03oALzAkoVhwLYqWTRWR-TUxD4NqVHVUv99ttg2Q%40mail.gmail.com.


RES: Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Samuel Nogueira
Hi Farook. Are you using sqlite3 as your application database? De: Farook MEnviado:quarta-feira, 3 de junho de 2020 13:46Para: Django usersAssunto: Geodjango Exception when importing django.contrib.gis.gdal I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python gdal from http://www.gisinternals.com/query.html?content=filelist=release-1900-gdal-2-4-4-mapserver-7-4-3.zip I have also set environment variables correctly. I did a gdalinfo --version from command prompt, i could get the version number. When i try to run django server using python manage.py runserver i am getting the below error  And in the command prompt i could see errors Any help would be appreciated-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d2cc9046-e609-44f3-b6a0-15c18e081a02%40googlegroups.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0711B3A0-2D32-4477-BB21-E585FBED5F2B%40hxcore.ol.


RES: Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Samuel Nogueira
Hi Farook. Are you using sqlite as your database?De: Farook MEnviado:quarta-feira, 3 de junho de 2020 13:46Para: Django usersAssunto: Geodjango Exception when importing django.contrib.gis.gdal I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python gdal from http://www.gisinternals.com/query.html?content=filelist=release-1900-gdal-2-4-4-mapserver-7-4-3.zip I have also set environment variables correctly. I did a gdalinfo --version from command prompt, i could get the version number. When i try to run django server using python manage.py runserver i am getting the below error  And in the command prompt i could see errors Any help would be appreciated-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d2cc9046-e609-44f3-b6a0-15c18e081a02%40googlegroups.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1D0C7C84-CD3F-4F5E-8F84-AE4A4EA26330%40hxcore.ol.


Re: Please help me out!!!!!

2020-06-03 Thread Lily Perera Capetillo
Hi try this



Urlpatterns=[

path(“/myview”, views.myview, name=”myview”)

]



In this case

Href={% url ‘ App_name/myview’%}

Write your app name in App name

but here Href={% url ‘ App_name/myview’%} put it this way href={% url ‘
App_name:myview’%} with :

El mié., 3 jun. 2020 a las 8:00, meera gangani ()
escribió:

> Yes i Did,
> But Nothing is working,
> with data-toggle href is not working
>
> On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore  wrote:
>
>> Hello Meera,
>>
>> Did you try using urls as
>>
>> 
>>
>> And I think you should check what messages you received on the shell where 
>> you are running ./manage.py runserver command. This might give more 
>> information on the problem.
>>
>> Regards
>>
>> Ajay
>>
>>
>> On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
>> wrote:
>>
>>> Hello Django-users
>>>
>>> href is not working
>>> here is my views.py file and my urls.py file
>>>
>>> Please Help me out!!
>>>
>>> Thank you in advance
>>> -Meera
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPuXgy6jOnWr5TsmBrLJ9%2BvHFE8Jp76Zgn_UJRW33H4-abnnxQ%40mail.gmail.com.


Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Farook M
I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python 
gdal from 
http://www.gisinternals.com/query.html?content=filelist=release-1900-gdal-2-4-4-mapserver-7-4-3.zip
 I 
have also set environment variables correctly. I did a gdalinfo --version 
from command prompt, i could get the version number. When i try to run 
django server using python manage.py runserver i am getting the below error
 [image: enter image description here] 

And in the command prompt i could see errors [image: enter image 
description here] 
Any help would be appreciated

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d2cc9046-e609-44f3-b6a0-15c18e081a02%40googlegroups.com.


Re: Please help me out!!!!!

2020-06-03 Thread Hella Nick
请检查您的路由地址,问题就出现在那里。

meera gangani 于2020年6月3日 周三15:19写道:

> Hello Django-users
>
> href is not working
> here is my views.py file and my urls.py file
>
> Please Help me out!!
>
> Thank you in advance
> -Meera
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHfGPEc9AZU0Y-xJLBZ0N2jwoDVioG3SLnnTQOickCE%3DsQOKsQ%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread Integr@te System
Hi freind,

You ever check typo in your code in base.html on for loop at "noti"!?

gl!

On Wed, Jun 3, 2020, 2:20 PM meera gangani  wrote:

> Hello Django-users
>
> href is not working
> here is my views.py file and my urls.py file
>
> Please Help me out!!
>
> Thank you in advance
> -Meera
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP5HUWq7YG2-b7ZanR%3DzYwkbv4wBw6-5qo%3DsMVBb5r3%2BfB%3DRYg%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread 'Ajay Rathore' via Django users
Hello Meera,

Did you try using urls as



And I think you should check what messages you received on the shell
where you are running ./manage.py runserver command. This might give
more information on the problem.

Regards

Ajay


On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
wrote:

> Hello Django-users
>
> href is not working
> here is my views.py file and my urls.py file
>
> Please Help me out!!
>
> Thank you in advance
> -Meera
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACDrS2ohxmNQAXouO1xHK6ktMjnCBqu16ctV99ESBPV3ifgqrg%40mail.gmail.com.


Re: django-tenants domain issue

2020-06-03 Thread Andréas Kühne
You just need to add those to your hosts file locally on your computer.

If you are using Mac:
https://www.imore.com/how-edit-your-macs-hosts-file-and-why-you-would-want

If you are using Linux:
https://support.rackspace.com/how-to/modify-your-hosts-file/

If you are using Windows:
https://support.rackspace.com/how-to/modify-your-hosts-file/


The hosts d.dumba.local and td.test.local both need to point to 127.0.0.1
and you are set.

Regards,

Andréas


Den ons 3 juni 2020 kl 02:56 skrev DumbaClassics :

> Hello Family
>
> I have been following a set up documentation for django-tenants. I did all
> the set-up to even create a public domain and two tenant domains. For
> allowed hosts I put ["*"] , though not safe as per clinical research data
> its convinient for my localhost Test. I am having a challenge navigating to
> all my domains. The usual http://127.0.0.1: 8000/ gives me No tenant for
> hostname "127.0.0.1" which is of course reasonable...say my domain name for
> public is d.dumba.local and the tenant one td.test.local what would be the
> way to navigating to these domains.
>
> Your cooperation will be appreciated
>
> Sincerly D.C
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/aafcef35-db62-4e0d-a744-0e94609dc9ab%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCd0ZDrim_L66-Yq%3DPyk%2BQ2K0i2s2rEfs1Gf4L%2BArXAukQ%40mail.gmail.com.


Re: Custom template tags - instance.templatetag

2020-06-03 Thread Andréas Kühne
Sorry - I posted that without a link?

https://stackoverflow.com/questions/1333189/django-template-system-calling-a-function-inside-a-model

This is by design - and you should always try to simplify what you are
doing in django templates.

Regards,

Andréas


Den ons 3 juni 2020 kl 11:41 skrev Andréas Kühne :

> Hi Jan,
>
> You can't do it like that. A templatetag is a simple function that is
> handled in a special way by the django templating language.
>
> See here for an explanation:
>
>
> Med vänliga hälsningar,
>
> Andréas
>
>
> Den tis 2 juni 2020 kl 22:53 skrev Jan Gregorczyk <
> jnk.gregorc...@gmail.com>:
>
>> Hi! How to change my template tag?
>> from django import template
>>
>> register = template.Library()
>>
>> @register.simple_tag
>> def votes_up_exists(answer, user_id):
>> pass
>>
>> how I use it - {% votes_up_exists answer request.user.id %}
>> how I would like to use it - {% answer.votes_up_exists user_id %}
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/c0aba2c4-b13d-4ba2-9478-d32661c81307%40googlegroups.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCfQAqKnTTQeYaK-5awmjK97d8jtO2O8Vgp97uQkBbfzpQ%40mail.gmail.com.


Re: Custom template tags - instance.templatetag

2020-06-03 Thread Andréas Kühne
Hi Jan,

You can't do it like that. A templatetag is a simple function that is
handled in a special way by the django templating language.

See here for an explanation:


Med vänliga hälsningar,

Andréas


Den tis 2 juni 2020 kl 22:53 skrev Jan Gregorczyk :

> Hi! How to change my template tag?
> from django import template
>
> register = template.Library()
>
> @register.simple_tag
> def votes_up_exists(answer, user_id):
> pass
>
> how I use it - {% votes_up_exists answer request.user.id %}
> how I would like to use it - {% answer.votes_up_exists user_id %}
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c0aba2c4-b13d-4ba2-9478-d32661c81307%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCeFTkKzn7Bcx2g0osRx%3DGA9q3pDQMNd_bFqDVowxtVyMg%40mail.gmail.com.


Re: Issue with serving angular with django

2020-06-03 Thread Andréas Kühne
Hi again,

How are you serving the django application? As far as I know the only way
to get django to serve your staticfiles (which you are describing) is to
set DEBUG to true and also use the runserver command.

How do you get the paths to the static files? What I would do is the
following:
1. Check the nginx config -  make sure that the directory that serves
static files is where your STATIC_ROOT points to.
2. Check so that the STATIC_URL is correctly set - it needs to be where
nginx serves the files.

These two will be automatically configured via the settings.py if you use
runserver in production Which you definitely shouldn't :)

Regards,

Andréas


Den tis 2 juni 2020 kl 17:13 skrev Sunday Iyanu Ajayi :

> Hi  Andréas  ,
>
> It actually followed the digital oceans setup in setting up the nginx
> server
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Mon, Jun 1, 2020 at 6:24 PM Andréas Kühne 
> wrote:
>
>> Hi Sunday,
>>
>> No - you don't. What collectstatic does is it collects all of the static
>> files to the path where they should be stored. This should be a directory
>> that should be served from nginx or apache or any other webserver. When you
>> run manage.py runserver - you run a development server that isn't geared
>> for production. And that is what is serving the files when "DEBUG" is set
>> to True.
>>
>> To make it work like you want it to:
>> 1. Install a webserver that can serve the static files.
>> 2. Install gunicorn, uwsgi or some other wsgi server to serve the django
>> application.
>>
>> When you have that working you will be able to look at your custom error
>> pages and so on.
>>
>> There are many good tutorials on howto set this up - I usually look at
>> digitalocean - check here for example:
>>
>> https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04
>>
>> You can also look at the official django docs for explaining how to run
>> production loads:
>> https://docs.djangoproject.com/en/3.0/ref/django-admin/#runserver
>> https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
>>
>> When you get this working - serving the static files from a
>> webserver isn't that hard.
>>
>> Regards,
>>
>> Andréas
>>
>>
>> Den mån 1 juni 2020 kl 16:18 skrev Sunday Iyanu Ajayi <
>> sunnexaj...@gmail.com>:
>>
>>> Hi Kasper,
>>>
>>> Thanks for the response.
>>> I serve my static file by running python manage.py collectstatic on the
>>> built file I get from the frontend angular guy
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunnexaj...@gmail.com *
>>>
>>>
>>>
>>> On Mon, Jun 1, 2020 at 2:55 PM Kasper Laudrup 
>>> wrote:
>>>
 Hi Sunday,

 On 01/06/2020 15.48, Sunday Iyanu Ajayi wrote:
 >
 > Please What am I doing wrong? Or are there better ways of serving
 > angular build files on django?
 >

 You haven't described how you are currently serving static files with
 Django. I suggest you start by reading this:

 https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/

 You definitely shouldn't use DEBUG in production and you definitely
 should serve static files with your web server of choice.

 Kind regards,

 Kasper Laudrup

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/12912d74-160c-547a-5cb5-0275432e751d%40stacktrace.dk
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw3vLNZ5RDLav-WuUO1kH4rn%3DF%3DcDLFdteK%2BM_4d9rR9HA%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK4qSCcqMsfK_5Gwd9GkBHTTgR5EQKr9Vmp%3DUaZqt8WuRVCRqQ%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop 

Re: Please help me out!!!!!

2020-06-03 Thread maninder singh Kumar
Is it a navbar or just a plain dropdown ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Wed, Jun 3, 2020 at 1:31 PM meera gangani 
wrote:

> Yes i Did,
> But Nothing is working,
> with data-toggle href is not working
>
> On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore  wrote:
>
>> Hello Meera,
>>
>> Did you try using urls as
>>
>> 
>>
>> And I think you should check what messages you received on the shell where 
>> you are running ./manage.py runserver command. This might give more 
>> information on the problem.
>>
>> Regards
>>
>> Ajay
>>
>>
>> On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
>> wrote:
>>
>>> Hello Django-users
>>>
>>> href is not working
>>> here is my views.py file and my urls.py file
>>>
>>> Please Help me out!!
>>>
>>> Thank you in advance
>>> -Meera
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SyS6mOd4jiRLpEd_m_bcBUmt8GVG4BMidi%2BfY%3DB4sasA%40mail.gmail.com.


Re: Please help me out!!!!!

2020-06-03 Thread meera gangani
Yes i Did,
But Nothing is working,
with data-toggle href is not working

On Wed, Jun 3, 2020 at 1:00 PM Ajay Rathore  wrote:

> Hello Meera,
>
> Did you try using urls as
>
> 
>
> And I think you should check what messages you received on the shell where 
> you are running ./manage.py runserver command. This might give more 
> information on the problem.
>
> Regards
>
> Ajay
>
>
> On Wed, Jun 3, 2020 at 10:21 AM meera gangani 
> wrote:
>
>> Hello Django-users
>>
>> href is not working
>> here is my views.py file and my urls.py file
>>
>> Please Help me out!!
>>
>> Thank you in advance
>> -Meera
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPL0eZ4HbjGjV4-mYP2%2BEqg9egEspZGmyF2oBuNmgkwbyA%40mail.gmail.com.


RE: Please help me out!!!!!

2020-06-03 Thread Vishesh Mangla
Href="" url ‘ name’%}Where name is the name parameter of the view in urls.py. Urlpatterns=[path(“/myview”, views.myview, name=”myview”)] In this caseHref="" url ‘ App_name/myview’%}Write your app name in App name Sent from Mail for Windows 10 From: meera ganganiSent: 03 June 2020 12:49To: django-users@googlegroups.comSubject: Please help me out! Hello Django-users href is not workinghere is my views.py file and my urls.py file Please Help me out!! Thank you in advance-Meera-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPLbk6JV8tQjxkKUiN-H%3D_JLHjztMQfGLK6oUx9ootEojg%40mail.gmail.com. 



-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/B95F9502-B7D0-49C6-8E4E-0C3B2F80EF21%40hxcore.ol.