Re: django staticfiles problem

2020-10-14 Thread Farai M
Why have the media url if it's point to the same dir as static .Your can
just specific it's separately in it's own dir as /media/ and have /static/
.You are also missing a static root there .

On Wed, Oct 14, 2020, 5:05 PM Chelsea Fan 
wrote:

> MEDIA_URL = '/images/'
> MEDIA_ROOT = BASE_DIR / 'static/images'
>
>
> On Wed, Oct 14, 2020 at 2:12 PM Anh Nguyen  wrote:
>
>> where is your STATIC_ROOT ?
>>
>>
>> On Wed, Oct 14, 2020 at 5:43 PM Chelsea Fan <
>> allaberdi16yazha...@gmail.com> wrote:
>>
>>> hello everyone, I have an issue, I can't connect css style to my
>>> template, but I can upload images and see it , here is my code,  please
>>> help me, thanks  for attentions !!!
>>>
>>> STATIC_URL = '/static/'
>>> STATICFILES_DIR = [BASE_DIR / 'static']
>>>
>>> {% load static %}
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> [image: image.png]
>>>
>>> --
>>> 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/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%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/CAKaoNbTN2-hiy71RS8H8i_wc9XeQqJBOLkR%3DOjEJxocorO1FRw%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/CAJwZnde%3D8xOePMK5L%2B9YvXtnW_U%2BHCpX2VVq5R%2BmQDZz39kBrQ%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/CAMeub5PM26mY%2BDpB-xK0NorWxXOE1qahL-zf2WJrFirqeGL73A%40mail.gmail.com.


Re: Recruitment

2020-10-14 Thread Farai M
One email l think would have been   enough because it goes  to every
body.The email should have been on it's separate thread with a  full
company profile and details so it stands out when we need those services
people will just search their inbox. Then you could put a  banner pricing
links to github, linkedin and your work so it will be really engaging.I
might not need your services but know someone who does so need something l
can forward to them. I think admin should come out with a criteria for such
emails so we support each other with out offending anyone . Otherwise happy
hustle wish the best may you succeed.If you look at the trend also when
someone wish to hire they mention it otherwise they will just be requiring
help or information .I don't know admin if we have a slack channel if it's
there please send me an invite if not we might need one so we can clearly
separate our posts.

On Wed, Oct 14, 2020, 4:20 PM Dvs Khamele  wrote:

> Did not expected this, apologizes.
>
> On Wed, 14 Oct 2020 at 15:46, Kasper Laudrup 
> wrote:
>
>> Hi Divyesh,
>>
>> On 14/10/2020 11.20, Dvs Khamele wrote:
>> > Hi John,
>> > Thanks for interest in Python / Django services. Let me know the best
>> > time to have contact also some contact details to my email personally.
>>
>> Considering your very shady behavior of spamming this list previously, I
>> hope people will consider twice before doing any kind of business with
>> you.
>>
>> That kind of behavior doesn't leave the impression of a trustworthy
>> business partner and I would definitely recommend everyone to stay far
>> away from you.
>>
>> 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/ce5d15e2-32bf-7878-1993-97ff8cb0b5ce%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/CAH9mneWyUM0kSmyNAii0JJJdyBpfdZ1YHXNtu5mKK%3DJO%2BAU-Lw%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/CAMeub5OhG%2BJ9rhdZrXv9HEO%2B00eC4a53sHURHEv1kA7oy%2BGNzg%40mail.gmail.com.


Re: Pasting images versus uploading

2020-10-14 Thread Ryan Nowakowski
On Fri, Oct 09, 2020 at 06:22:10PM +1100, Mike Dewhirst wrote:
> On 9/10/2020 11:55 am, Ryan Nowakowski wrote:
> > Maybe you could swap out the default ImageField widget for
> > TinyMCE-lite HTMLField? Security-wise you probably want to sanitize
> > the input from HTMLField in Django to make sure only img tags are allowed.
> 
> With the image pasted in, viewing the browser page source it is
> represented as just a string although it does contain ...
> 
> ... src=data:image/png;base64,iVBOR ...
> 
> 
> Are you saying all I have to do is write a clean() method for the
> HTMLField to detect various image types?

In your Django form class I'd write a clean method specifically for that
field[1] that parses the html, perhaps using BeautifulSoup[2].  Then
search for any "img" tags.  For each img tag, parse the data URI[3] to
get the image data.

You still have the problem that the HTMLField is meant to be a
replacement for TextField so you'll need to figure out how to back that
with an ImageField instead.  Perhaps you should try to go one level
lower and use the TinyMCE form widget[4] instead of using the HTMLField?

[1] 
https://docs.djangoproject.com/en/3.1/ref/forms/validation/#cleaning-a-specific-field-attribute
[2] https://www.crummy.com/software/BeautifulSoup/bs4/doc/
[3] https://stackoverflow.com/a/33870677/226697
[4] 
http://romanvm.github.io/django-tinymce4-lite/usage.html#tinymce-widget-for-forms

-- 
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/20201014222827.GW12495%40fattuba.com.


Does not automatically assign ID?

2020-10-14 Thread Joakim Hove
Disclaimers:

   1. This issue is also on StackOverflow:
   
https://stackoverflow.com/questions/64320386/django-postgresql-model-with-only-foreign-keys
   2. I posted this here in this group a couple of days ago without finding
   a solution.

I must admit I am quite baffled by this problem, seems like a thing I have
done for years suddenly does not work any longer?? In particular the code
in question here has worked for a couple of months, and then "suddenly"
stopped working - probably due to "apt get upgrade", but I can not pinpoint
exactly when it stopped working. I post it again here with some corrections
and a bit more detail. Hopefully someone can see what I do wrong; if
someone wants to contact me off-list and offer commercial help I could be
interested in that.


I have a model which looks like this:

class InputTypeMap(models.Model):
input_type = models.ForeignKey(InputType, on_delete=models.CASCADE)
training = models.ForeignKey(Training, on_delete=models.CASCADE)
category = models.ForeignKey(Category, on_delete=models.CASCADE)
gender = models.ForeignKey(Gender, on_delete=models.CASCADE)

I.e. there are four fields in the model which are all foreign keys to other
models. The primary key is not added explicitly by me, rather I trust
Django to add the required primary key with an "invisible" AutoField. When
I create a new instance of this class like:

InputTypeMap.objects.create(input_type=input_type,
training=training,
gender=gender,
category=category)

I get an exception:

Traceback (most recent call last):
  File 
"/home/hove/sleipner/venv/lib/python3.7/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "id" violates
not-null constraint
DETAIL:  Failing row contains (null, Maintenance, Female, MareGielding, No).

>From the error message it seems to me that a ID key for the new entry is
not generated; I was expecting postgres to do that itself? When the same
code is run as a test on sqlite it works as intended.
Information about Postgres versions: Server 9.6 - Client 13

Joakim

-- 
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/CALKD1M-wcpm9PGMHXrE-jBaPDxMy3R3MuGiSvwASe0re97%2Bj9w%40mail.gmail.com.


Re: Recruitment

2020-10-14 Thread Damanjeet Singh
Better to support and answers to users quries rather than promoting your
business here.

On Wed, 14 Oct 2020, 15:20 Dvs Khamele,  wrote:

> Did not expected this, apologizes.
>
> On Wed, 14 Oct 2020 at 15:46, Kasper Laudrup 
> wrote:
>
>> Hi Divyesh,
>>
>> On 14/10/2020 11.20, Dvs Khamele wrote:
>> > Hi John,
>> > Thanks for interest in Python / Django services. Let me know the best
>> > time to have contact also some contact details to my email personally.
>>
>> Considering your very shady behavior of spamming this list previously, I
>> hope people will consider twice before doing any kind of business with
>> you.
>>
>> That kind of behavior doesn't leave the impression of a trustworthy
>> business partner and I would definitely recommend everyone to stay far
>> away from you.
>>
>> 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/ce5d15e2-32bf-7878-1993-97ff8cb0b5ce%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/CAH9mneWyUM0kSmyNAii0JJJdyBpfdZ1YHXNtu5mKK%3DJO%2BAU-Lw%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/CAGLHGi6F9-MZHLu4PEaHFzfnvrE7ktYA%2BW6cV6E1K9K2HA-2jw%40mail.gmail.com.


Re: Request for admins

2020-10-14 Thread Damanjeet Singh
I agree with you.

On Sun, 11 Oct 2020, 21:14 o1bigtenor,  wrote:

> Greetings
>
> The list volume seems to have attracted those that purport to offer
> help or services.
>
> Is it possible that the volume of this has reached a point where there
> is a separate list for just that.
> That would be a separate subscription to a list where if one wanted to
> either use or offer services one was free to do so. The second part of
> that would be that if one overtly did the same on the 'users' list one
> would be either punted or at the very least put on controlled listing.
>
> This request is stemming from the 40 or 50 emails polluted by a listee
> who seems to think that attaching his business card or better its
> written equivalent to every thread is going to get him business. Mine
> - - - - never - - - - I don't do business that way.
>
> Hoping that this request isn't too far off topic!
>
> Regards
>
> --
> 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/CAPpdf59qjGznmqJTbpHe6c8t0_GoTn6O8bs6agggPA6Zbx8EMQ%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/CAGLHGi6PnAvLP4YyCmvuyGoawx%3D7mER4sXkb0spGXvaY6i669g%40mail.gmail.com.


Re: Can Django template extend dynamic content in child or grandchild template?

2020-10-14 Thread tristant
Sorry for the badly formatted html code. My question on Stackoverflow here: 
https://stackoverflow.com/questions/64359521/djang-multiple-levels-of-template-extension-while-keeping-the-elements-of-the-up

Thanks,

On Wednesday, October 14, 2020 at 1:03:43 PM UTC-6 tristant wrote:

>
>   ...   {% block content 
> %} {% endblock %}   
>
> category.html :
> {% extends "base.html" %} {% block content %}  <
> div id="menu_category_display"> {% for category in menu_categories %} {% 
> with category_button="menu_"|add:category.name|lower %}  "showItem('{{category_button}}','category_buttons')"> {{category}}  button> {% endwith %} {% endfor %}
> {% block level_2_content %} {% endblock %}   {% endblock %} 
>
> and item.htlm
> {% extends "category/category.html" %} {% block level_2_content %}  id="test_div"> {% for item in menu_items %} {{item.name}} {% 
> endfor %}  {% endblock %} 
>
> When item.html is rendered, all the elements that were rendered by 
> category.html are gone. Only the elements of the base.html are retained. 
>
> In the code above, the entire category_row div does not appear in 
> item.html. How do I retain them?
>
> How do I retain all elements in all parent templates instead of just 
> base.html? A general method to do this for more than 3 levels of 
> extension like in my case?
>
>
>

-- 
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/8a63dea0-5d37-4cd7-bc7d-c035410c89b8n%40googlegroups.com.


Can Django template extend dynamic content in child or grandchild template?

2020-10-14 Thread tristant

  ...   {% block content %} 
{% endblock %}   

category.html :
{% extends "base.html" %} {% block content %}  <
div id="menu_category_display"> {% for category in menu_categories %} {% 
with category_button="menu_"|add:category.name|lower %}  {{category}}  
{% endwith %} {% endfor %}{% block 
level_2_content %} {% endblock %}   {% endblock %} 

and item.htlm
{% extends "category/category.html" %} {% block level_2_content %}  {% for item in menu_items %} {{item.name}} {% endfor %} 
 {% endblock %} 

When item.html is rendered, all the elements that were rendered by 
category.html are gone. Only the elements of the base.html are retained. 

In the code above, the entire category_row div does not appear in item.html. 
How do I retain them?

How do I retain all elements in all parent templates instead of just 
base.html? A general method to do this for more than 3 levels of extension 
like in my case?


-- 
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/5c52b701-9a60-4ac6-ae90-072a1d9ae2bbn%40googlegroups.com.


Re: django staticfiles problem

2020-10-14 Thread Chelsea Fan
MEDIA_URL = '/images/'
MEDIA_ROOT = BASE_DIR / 'static/images'


On Wed, Oct 14, 2020 at 2:12 PM Anh Nguyen  wrote:

> where is your STATIC_ROOT ?
>
>
> On Wed, Oct 14, 2020 at 5:43 PM Chelsea Fan 
> wrote:
>
>> hello everyone, I have an issue, I can't connect css style to my
>> template, but I can upload images and see it , here is my code,  please
>> help me, thanks  for attentions !!!
>>
>> STATIC_URL = '/static/'
>> STATICFILES_DIR = [BASE_DIR / 'static']
>>
>> {% load static %}
>> 
>> 
>> 
>> 
>> 
>>
>> [image: image.png]
>>
>> --
>> 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/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%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/CAKaoNbTN2-hiy71RS8H8i_wc9XeQqJBOLkR%3DOjEJxocorO1FRw%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/CAJwZnde%3D8xOePMK5L%2B9YvXtnW_U%2BHCpX2VVq5R%2BmQDZz39kBrQ%40mail.gmail.com.


Re: Recruitment

2020-10-14 Thread Dvs Khamele
Did not expected this, apologizes.

On Wed, 14 Oct 2020 at 15:46, Kasper Laudrup  wrote:

> Hi Divyesh,
>
> On 14/10/2020 11.20, Dvs Khamele wrote:
> > Hi John,
> > Thanks for interest in Python / Django services. Let me know the best
> > time to have contact also some contact details to my email personally.
>
> Considering your very shady behavior of spamming this list previously, I
> hope people will consider twice before doing any kind of business with you.
>
> That kind of behavior doesn't leave the impression of a trustworthy
> business partner and I would definitely recommend everyone to stay far
> away from you.
>
> 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/ce5d15e2-32bf-7878-1993-97ff8cb0b5ce%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/CAH9mneWyUM0kSmyNAii0JJJdyBpfdZ1YHXNtu5mKK%3DJO%2BAU-Lw%40mail.gmail.com.


Re: django template forloop

2020-10-14 Thread webmbackslash
for field in formone not fieldi

Il giorno mer 14 ott 2020 alle ore 13:06 RANGA BHARATH JINKA <
bharathjink...@gmail.com> ha scritto:

> Hi,
>
>  You have to end for loop for second for loop
>
> On Wed, Oct 14, 2020 at 4:23 PM luca72.b...@gmail.com <
> luca72.bertolo...@gmail.com> wrote:
>
>> Hello
>> I have this:
>> {% for x in lista_form %}
>> {% if forloop.counter < 100 %}
>> {% for fieldi in formone %}
>> {{ fieldi.label }} {{ fieldi }}
>> {% endfor %}
>> Immagine 
>>  {% endif %}
>> {% if forloop.counter|divisibleby:"2" %}
>> 
>> {% endif %}
>>
>> The second forloop is not executed, where i have to apply it?
>>
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/7a3e9bec-7e96-4922-ac0d-765ab49eb0d7n%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m314L9XN-xiXXzDtx2sr9TZTysY9oyxLjF2De7zCfQ8MAmA%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/CABD06pZiNaPscngtMxeYQfjSooBRF50UA2Lg%3DZ36-Y7YXUdQug%40mail.gmail.com.


Re: django staticfiles problem

2020-10-14 Thread Anh Nguyen
where is your STATIC_ROOT ?


On Wed, Oct 14, 2020 at 5:43 PM Chelsea Fan 
wrote:

> hello everyone, I have an issue, I can't connect css style to my template,
> but I can upload images and see it , here is my code,  please help me,
> thanks  for attentions !!!
>
> STATIC_URL = '/static/'
> STATICFILES_DIR = [BASE_DIR / 'static']
>
> {% load static %}
> 
> 
> 
> 
> 
>
> [image: image.png]
>
> --
> 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/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%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/CAKaoNbTN2-hiy71RS8H8i_wc9XeQqJBOLkR%3DOjEJxocorO1FRw%40mail.gmail.com.


Re: django template forloop

2020-10-14 Thread RANGA BHARATH JINKA
Hi,

 You have to end for loop for second for loop

On Wed, Oct 14, 2020 at 4:23 PM luca72.b...@gmail.com <
luca72.bertolo...@gmail.com> wrote:

> Hello
> I have this:
> {% for x in lista_form %}
> {% if forloop.counter < 100 %}
> {% for fieldi in formone %}
> {{ fieldi.label }} {{ fieldi }}
> {% endfor %}
> Immagine 
>  {% endif %}
> {% if forloop.counter|divisibleby:"2" %}
> 
> {% endif %}
>
> The second forloop is not executed, where i have to apply it?
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7a3e9bec-7e96-4922-ac0d-765ab49eb0d7n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m314L9XN-xiXXzDtx2sr9TZTysY9oyxLjF2De7zCfQ8MAmA%40mail.gmail.com.


django template forloop

2020-10-14 Thread luca72.b...@gmail.com
Hello 
I have this:
{% for x in lista_form %}
{% if forloop.counter < 100 %}
{% for fieldi in formone %}
{{ fieldi.label }} {{ fieldi }}
{% endfor %}
Immagine 
 {% endif %}  
{% if forloop.counter|divisibleby:"2" %}

{% endif %}

The second forloop is not executed, where i have to apply it?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7a3e9bec-7e96-4922-ac0d-765ab49eb0d7n%40googlegroups.com.


django staticfiles problem

2020-10-14 Thread Chelsea Fan
hello everyone, I have an issue, I can't connect css style to my template,
but I can upload images and see it , here is my code,  please help me,
thanks  for attentions !!!

STATIC_URL = '/static/'
STATICFILES_DIR = [BASE_DIR / 'static']

{% load static %}






[image: image.png]

-- 
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/CAJwZndd_SYaToM%3D6h1KL-WmXs7eR3e0sgwHqVPPFwo%3Dx2HW5xg%40mail.gmail.com.


Re: Recruitment

2020-10-14 Thread Kasper Laudrup

Hi Divyesh,

On 14/10/2020 11.20, Dvs Khamele wrote:

Hi John,
Thanks for interest in Python / Django services. Let me know the best 
time to have contact also some contact details to my email personally.


Considering your very shady behavior of spamming this list previously, I 
hope people will consider twice before doing any kind of business with you.


That kind of behavior doesn't leave the impression of a trustworthy 
business partner and I would definitely recommend everyone to stay far 
away from you.


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/ce5d15e2-32bf-7878-1993-97ff8cb0b5ce%40stacktrace.dk.


Re: Recruitment

2020-10-14 Thread Dvs Khamele
Hi John,
Thanks for interest in Python / Django services. Let me know the best time
to have contact also some contact details to my email personally.
Mine are:- live:dvskha, https://wa.me/+91918225998112
Thanks and regards,
Divyesh Khamele

On Tue, 13 Oct 2020 at 18:32, John Rajesh  wrote:

> I'm interested
> On 23 Sep 2020 20:11, "Harish Thiyagharajan" 
> wrote:
>
>> I want a interested django user , DM mail for more details , all the
>> details including payment can be discussed ...looking for for you guys .
>>
>> --
>> 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/7b7956bc-d239-4b63-9194-0644b8a6eeben%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/CA%2BbM%2BwAvEtDmMWvDGr_%2BdCAy8ts_giWDnJavfuKQX7i7Y4iAgQ%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/CAH9mneUDmpxDM%2BbZ93c3oMgNYA-n4icSaHnj65WYORBxxHr4Tg%40mail.gmail.com.


Double for cycle in template

2020-10-14 Thread luca72.b...@gmail.com
Hello
i have this:

{% for fieldi in formone %}
{{ fieldi.label }} {{ fieldi }}

{% if forloop.counter|divisibleby:"2" %}

{% endif %}
{% endfor %}


i need to add:
{% for fieldi in formone and for or x in lista_form %}
 { % if forloop.counter < 100 %}
Immagine 
{% endif  %} 
   
{{ fieldi.label }} {{ fieldi }}

{% if forloop.counter|divisibleby:"2" %}

{% endif %}
{% endfor %}
{% endfor %}
 

{% for x in lista_form %}
{% if forloop.counter < 100 %}
Immagine 
{% endif  %} 
{% endfor %}

-- 
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/b68ff59f-a229-4a08-8b36-ba811c96e4c6n%40googlegroups.com.