Re: django JsonResponse

2017-06-28 Thread m712 - Developer
You may want to take a look at http://www.django-rest-framework.org/
The error tells you exactly what's wrong: MyModel object is a Model, which is not iterable. You want to serialize the MyModel object, which is possible with Django Rest Framework.
I usually advise against using JsonResponse over DRF. You should only use it if you're using it once or twice in your app and it's not related to a model or something that's complex.
On Jun 28, 2017 4:12 PM, shahab emami  wrote:hello i want to use ajax in my django project.i have no problem with writing ajax method or url. my problem is in my django view.i send a pk from template with ajax and in my view:def edit(request):    pk = request.GET.get('pk' or None)        instance = models.MyModel.objects.get(pk=pk)    return JsonResponse(instance)can anybody tell me if this is a good way to work with JsonResponse?when i write this i get this error:MyModel object is not iterablewhat i have to do to solve this error.every search that i make is about SimpleJson but i now SimpleJson is before django 1.7i am working with django 1.11can anybody save me from this 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+unsubscribe@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/4efc338d-7326-4c98-9e03-c88ba0834ff3%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/5953b1ec.ce0e1c0a.136e9.792cSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom field implementing Boolean Field is having response value as None instead of False

2017-06-19 Thread m712 - Developer
Melvyn was not saying whether you were checking for None. If `value` is i.e. "some string" your to_python method will return `None`. You should do something like this:
```
    if value in ('t', ...): return True
    elif value in ('f', ...): return False
    else: return bool(value) # You can change this
```
On Jun 19, 2017 11:59 AM, Priyanka Thakur  wrote:Hi Melvyn,I am checking for None in the last if condition in to_python method :--copy--> if value in ('f', 'False', 'false', '0', '\x00', None): return> False--copy--Thanks for checking and replying !!Regards,PriyankaOn Friday, 16 June 2017 20:03:22 UTC+5:30, Priyanka Thakur  wrote:Hi,I am doing migration from Django 1.7 to 1.10 version and has a custom django field.Below is the custom class for the field:







from django.db import models


class HibernateBooleanField(models.BooleanField):
    def from_db_value(self, value, _expression_, connection, context):
        return self.to_python(value)

    def get_internal_type(self):
        return "HibernateBooleanField"

    def db_type(self, connection):
        return 'bit(1)'

    def to_python(self, value):
        if value in (True, False):
            return value
        if value in ('t', 'True', 'true', '1', '\x01'): return True
        if value in ('f', 'False', 'false', '0', '\x00', None): return False

    def get_db_prep_value(self, value, connection, prepared=False):
        return 0x01 if value else 0x00

    def get_db_prep_save(self, value, connection):
        return 0x01 if value else 0x00

    def get_prep_value(self, value):
        return self.to_python(value)---I have defined a field in the model as:class MetaMetadata(models.Model):    is_folder = HibernateBooleanField()When I invoke a POST request on API in my test case , I get the value for this field as "None" in response. The API is :response = self._client.post('/xyz/api/metametadatas/',   {'edit_view': "TestEditView",  'grid_view': "TestGridView",  'name': "Test Metametadata",  'sort_key': 9000,  'parentid': 0,  'version':0,  'id': 100}, format='json')Please explain , what is it that I'm doing wrong. Why isn't to_python method getting invoked ? Am I missing something?Regards,Priyanka



-- 
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+unsubscribe@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/c89377a1-78cb-4b76-9518-39cd5181dcb8%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/5947a89f.139f1c0a.2ecc9.993bSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: ModuleNotFoundError: No module named 'models'

2017-05-29 Thread m712 - Developer
How do you expect us to understand your problem if you give us no context at all? For all I know this error could be a file system corruption.
On May 30, 2017 2:42 AM, jinghui yang  wrote:ModuleNotFoundError: No module named 'models'How to fix this 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-users+unsubscribe@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/0d6d1c8a-37e3-4024-863e-3befc271f5fe%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/592cd9d2.cd001c0a.257c9.5fdeSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help me

2017-05-29 Thread m712 - Developer
You just made my day.


On 05/29/2017 12:52 PM, Opeyemi Gabriel wrote:
> Django girls, am a guy
>
> On May 29, 2017 13:20, "Jani Tiainen"  > wrote:
>
> Hi,
>
> If you feel that Django tutorial is too compact, Django Girls do
> have much more verbose tutorial.
>
> And welcome to Django-world.
>
> On 29.05.2017 11:57, Opeyemi Gabriel wrote:
>> Hello, Am name is Gabriel, please am a novice and am interested
>> in learn django. Can you please put me through
>> Thank you
>> -- 
>> 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/CACbdT%3D0uo4XApksxz8yutWAMKXccCJACnD21icCahuCe%2BB993g%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout
>> .
>
> -- 
> Jani Tiainen
>
> -- 
> 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/06528c19-7727-67f3-7511-ff82e7c4039c%40gmail.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/CACbdT%3D36JiLapny11t4%3DpF0mHuv0g1mRV625i_FJAPP-syKB8A%40mail.gmail.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/d658d7ef-4515-bbf9-538a-3cca60a8171b%40getbackinthe.kitchen.
For more options, visit https://groups.google.com/d/optout.


Re: Django not showing updated data

2017-05-18 Thread m712 - Developer
You most likely have a variable as a rest of query that's defined at module 
level. Something like:

records = models.Record.objects.all()

def my_view(request):
    ...

You need to put your variables inside views if you want them fresh every view. 
Otherwise Django will fetch it when you start the server and won't do it again.

On May 18, 2017 11:41 AM, "gkleanthous.mob"  wrote:
>
> Hi
>
> I have a page which shows a list of records from a model. I have an “add new” 
> link which opens a form. User fill the form and clicks save. Then an ajax 
> call is done and the new record is saved to the database.
>
> When i visit back the page with the list i do not see the new record, 
> although it is saved in the database. I have to stop the server and restart 
> it in order to see the new records.
>
>
> Why is this happening?
>
>
> Please advise.
>
> 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 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/a8e40b18-2cec-4efc-8b12-a2d788161ee8%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/591da87e.87661c0a.21006.7dfeSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email conformation problem

2017-05-17 Thread m712 - Developer
Do not respond to everyone with the same question. We see it once you respond 
to somebody (mail is delivered to every subscriber of this group).
I already gave you a suggestion. It should be pretty easy to search "what is a 
PTR record" and "how to set PTR record on $server_host" on your favorite search 
engine. Learn to research a little, please.
Other than that, try what James suggested.

On May 17, 2017 1:12 PM, Ismail Sarenkapic <ismailgi...@gmail.com> wrote:
>
> Ok, so how do I solve this problem of fishing content in my mails?
>
> On Wednesday, May 17, 2017 at 9:56:56 AM UTC+2, m712 - Developer wrote:
>>
>> That's a pretty rude way to reply for someone who is asking questions. Many 
>> major email providers mark emails from servers without a PTR record to their 
>> domains as "spam".
>>
>> On May 17, 2017 9:52 AM, Ismail Sarenkapic <ismai...@gmail.com> wrote:
>>>
>>> lol, It is Django related question and can be solved with some of third 
>>> party libraries like allauth, scoialauth etc. 
>>> Please don't replay to the posts when you don't know what it is about.tnx 
>>> again
>>>
>>> On Wednesday, May 17, 2017 at 8:41:05 AM UTC+2, Constantine Covtushenko 
>>> wrote:
>>>>
>>>> It is not a Django related question, sorry.
>>>> I can just suggest to look in 'SPAM' filters in you mailing agent.
>>>>
>>>> On Wed, May 17, 2017 at 9:24 AM, Ismail Sarenkapic <ismai...@gmail.com> 
>>>> wrote:
>>>>>
>>>>> I already fixed the problem tnx.
>>>>> but i still dont know why are my emails treated like potential fishing 
>>>>> content, can you help me with that?
>>>>>
>>>>>
>>>>> On Wednesday, May 17, 2017 at 8:21:22 AM UTC+2, Constantine Covtushenko 
>>>>> wrote:
>>>>>>
>>>>>> Hi, Ismail
>>>>>>
>>>>>> Did you try:
>>>>>>
>>>>>> instance.user.email?
>>>>>>
>>>>>> I hope it should be what you need.
>>>>>>
>>>>>> Regards,
>>>>>> Constantine C.
>>>>>>
>>>>>> On Mon, May 15, 2017 at 3:47 PM, Ismail Sarenkapic <ismai...@gmail.com> 
>>>>>> wrote:
>>>>>>>
>>>>>>> from django.conf import settings
>>>>>>> from django.contrib.auth.models import (
>>>>>>> BaseUserManager, AbstractBaseUser
>>>>>>> )
>>>>>>> from django.contrib import messages
>>>>>>> from django.core.mail import send_mail
>>>>>>> from django.conf import settings
>>>>>>> from django.core.validators import RegexValidator
>>>>>>> from django.db import models
>>>>>>> from django.db.models.signals import post_save
>>>>>>> # Create your models here.
>>>>>>> from .utils import code_generator
>>>>>>>
>>>>>>> USERNAME_REGEX = '^[a-zA-Z0-9.+-]*$'
>>>>>>>
>>>>>>> class MyUserManager(BaseUserManager):
>>>>>>> def create_user(self, username, email, password=None):
>>>>>>> """
>>>>>>> Creates and saves a User with the given email, date of
>>>>>>> birth and password.
>>>>>>> """
>>>>>>> if not email:
>>>>>>> raise ValueError('Users must have an email address')
>>>>>>>
>>>>>>> user = self.model(
>>>>>>> username = username,
>>>>>>> email=self.normalize_email(email),
>>>>>>> )
>>>>>>>
>>>>>>> user.set_password(password)
>>>>>>> user.save(using=self._db)
>>>>>>> return user
>>>>>>>
>>>>>>> def create_superuser(self, username, email, password):
>>>>>>> """
>>>>>>> Creates and saves a superuser with the given email, date of
>>>>>>> birth and password.
>>>>>>> """
>>>>>>> user = self.create_user(
>>>>

Re: Email conformation problem

2017-05-17 Thread m712 - Developer
That's a pretty rude way to reply for someone who is asking questions. Many major email providers mark emails from servers without a PTR record to their domains as "spam".
On May 17, 2017 9:52 AM, Ismail Sarenkapic  wrote:lol, It is Django related question and can be solved with some of third party libraries like allauth, scoialauth etc. Please don't replay to the posts when you don't know what it is about.tnx againOn Wednesday, May 17, 2017 at 8:41:05 AM UTC+2, Constantine Covtushenko wrote:It is not a Django related question, sorry.I can just suggest to look in 'SPAM' filters in you mailing agent.On Wed, May 17, 2017 at 9:24 AM, Ismail Sarenkapic  wrote:I already fixed the problem tnx.but i still dont know why are my emails treated like potential fishing content, can you help me with that?On Wednesday, May 17, 2017 at 8:21:22 AM UTC+2, Constantine Covtushenko wrote:Hi, IsmailDid you try:instance.user.email?I hope it should be what you need.Regards,Constantine C.On Mon, May 15, 2017 at 3:47 PM, Ismail Sarenkapic  wrote:from django.conf import settingsfrom django.contrib.auth.models import (BaseUserManager, AbstractBaseUser)from django.contrib import messagesfrom django.core.mail import send_mailfrom django.conf import settingsfrom django.core.validators import RegexValidatorfrom django.db import modelsfrom django.db.models.signals import post_save# Create your models here.from .utils import code_generatorUSERNAME_REGEX = '^[a-zA-Z0-9.+-]*$'class MyUserManager(BaseUserManager):def create_user(self, username, email, password=None):"""Creates and saves a User with the given email, date ofbirth and password."""if not email:raise ValueError('Users must have an email address')user = self.model(username = username,email=self.normalize_email(email),)user.set_password(password)user.save(using=self._db)return userdef create_superuser(self, username, email, password):"""Creates and saves a superuser with the given email, date ofbirth and password."""user = self.create_user(username,email,password=password,)user.is_admin = Trueuser.is_staff = Trueuser.save(using=self._db)return userdef get_email_field_name(self, email):email_string = str(self.email)return email_stringclass MyUser(AbstractBaseUser):username = models.CharField(max_length=255, validators=[RegexValidator(regex = USERNAME_REGEX,message = 'Username must be Alpahnumeric or contain any of the following: ". @ + -" ',code='invalid_username')],unique=True,)email = models.EmailField(verbose_name='email address',max_length=255,unique=True,)zipcode   = models.CharField(max_length=120, default="92660")is_active = models.BooleanField(default=True)is_staff = models.BooleanField(default=False)is_admin = models.BooleanField(default=False)objects = MyUserManager()USERNAME_FIELD = 'username'REQUIRED_FIELDS = ['email']def get_full_name(self):# The user is identified by their email addressreturn self.emaildef get_short_name(self):# The user is identified by their email addressreturn self.emaildef __str__(self):  # __unicode__ on Python 2return self.emaildef has_perm(self, perm, obj=None):"Does the user have a specific permission?"# Simplest possible answer: Yes, alwaysreturn Truedef has_module_perms(self, app_label):"Does the user have permissions to view the app `app_label`?"# Simplest possible answer: Yes, alwaysreturn True# @property# def is_staff(self):# "Is the user a member of staff?"# # Simplest possible answer: All admins are staff# return self.is_adminclass ActivationProfile(models.Model):user= models.ForeignKey(settings.AUTH_USER_MODEL)key = models.CharField(max_length=120)expired = models.BooleanField(default=False)def save(self, *args, **kwargs):self.key = code_generator()super(ActivationProfile, self).save(*args, **kwargs)def post_save_activation_receiver(sender, instance, created, *args, **kwargs):if created:#send emailsubject = 'Registration'message = "http://127.0.0.1:8000/activate/{0}".format(instance.key)from_email = settings.EMAIL_HOST_USERrecipient_list = ['UserEmail']print(recipient_list)send_mail(subject, message, from_email, recipient_list,fail_silently=True)post_save.connect(post_save_activation_receiver, sender=ActivationProfile)class 

Re: Unicode error in __unicode__(self) function

2017-05-09 Thread m712 - Developer
On May 9, 2017 11:42 AM, Melvyn Sopacua  wrote:
> I'm sorry - but this isn't your real error.
Your error is in another castle?




-- 
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/5911f4a1.d2d61c0a.786e9.2a60SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Link to download

2017-05-02 Thread m712 - Developer
You cannot get a file outside of your project unless you symlink it inside the 
project. This is also a Very Bad Thing(TM) as it may allow attackers to request 
arbitrary files.
What you should do instead is this:
1) Put Data/01/export.txt to the static/ folder inside your app (with the same 
folder structure if you need it that way)
2) Build the path to your file with /static/ as prefix, i.e. 
http://127.0.0.1/static/Data/01/export.txt

On May 2, 2017 3:44 PM, Sixtine Vernhes  wrote:
>
> This is in development. I try to send url of my file in views.py : 
>    
>  return render(request, "export.html", {'out': urlOut})
>
> and in my template I have the link : 
>
> Lien du  fichier 
>
> but when I open it I have this link : 
>
> http://127.0.0.1:8000/home/myuser/Data/01/export.txt 
>
> and I want to have this to download the file : 
> /home/myuser/Data/01/export.txt 
>
> Have you any ideas? 
>
> (sorry i'm newbie in django ^^)
>
> Le mardi 2 mai 2017 14:04:05 UTC+2, Antonis Christofides a écrit :
>>
>> Is this in production or development? What is the url that doesn't work? 
>> What happens when you try the url?
>>
>> Regards,
>>
>> A.
>>
>> Antonis Christofides
>>
>> http://djangodeployment.com
>>
>> On 2017-05-02 11:28, Sixtine Vernhes wrote:
>>>
>>> Hi ! 
>>>
>>> I try to create a link on Django who download a static csv file, but I have 
>>> no idea how to do. 
>>> In my settings.py :
>>>
>>> STATIC_URL = '/static/'
>>> STATICFILES_DIRS = (
>>>     os.path.join(BASE_DIR, "static/"),
>>> )
>>>
>>> and my file is in this directory 
>>>
>>> Would anyone have an idea ? 
>>>
>>>
>>>
>>> -- 
>>> 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...@googlegroups.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 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/j5ftp2xrd2aps3c4mtn66umn.1493736693783%40email.android.com.
For more options, visit https://groups.google.com/d/optout.


Re: Displaying the multiple images in the product detail page

2017-04-25 Thread m712 - Developer
I forgot a second {% endfor %} below the  there, but you get the idea.
On Apr 26, 2017 6:29 AM, m712 - Developer <comeon@getbackinthe.kitchen> wrote:Stop replying over and over again with the same content, we saw it.
Regarding your question, I don't know whether you're referring to item[0].image[x] or item[x]. If you're refferring to the first one then please consider renaming your variables. In any case; this:



         {% for item in product.productimage_set.all %}
    {% for im in item[0].image %}

            

         {% endfor %}

should work for the former, and this:



         {% for item in product.productimage_set.all %}
    {% for i in item %}

            

         {% endfor %}

should work for the latter. If you need to loop both item and image you should be able to do it by now.
On Apr 25, 2017 9:55 PM, Shamaila Moazzam <shamaila.moazzam@gmail.com> wrote:            {% for item in product.productimage_set.all %}                                          {% endfor %}     this code is displaying different images of a single product ,but the question is how to slice them ,how to get image[0], image[1] ..on the product page...can any one help??On Tuesday, April 25, 2017 at 9:53:15 PM UTC+5, hadiqak...@gmail.com wrote:i am trying to display a set of images with the use of index.here is the code:              {% for item in product.productimage_set.all %}                                          {% endfor %}     the above code is displaying a set of images for one product .right.i want to display it like {{ item[0].image.url }}how can i do that ?On Tuesday, April 25, 2017 at 6:05:02 PM UTC+5, Matthew Pava wrote:







You could reference the images from your Product object like so:
product.image_set.all()
You may want to use models.ImageField, which inherits from models.FileField, instead of models.FileField
 
For more information:
https://docs.djangoproject.com/en/1.11/topics/db/examples/many_to_one/
https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.FileField
 
 
In your template, you would probably want to use a for loop similar to this:
{% for i in product.image_set.all %}
   i.name }}” />
{% endfor %}
 
 
From: django...@googlegroups.com [mailto:django...@googlegroups.com]
On Behalf Of hadiqak...@gmail.com
Sent: Tuesday, April 25, 2017 4:10 AM
To: Django users
Subject: Displaying the multiple images in the product detail page
 

I have created a separate image class where you can add images but I'm unable to show the multiple images on the product detail page. If anyone can guide me, it would be great. 

 


class Image(models.Model):    active = models.BooleanField(default=True)    product = models.ForeignKey(Product)    image = models.FileField(null=True)    title = models.CharField(max_length=120)    def __unicode__(self):    return self.title


 


-- 
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...@googlegroups.com.
To post to this group, send email to 
djang...@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/fcff49ff-f999-41eb-a5bb-2abc567c2f73%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+unsubscribe@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/b38ae152-d2fd-4eb7-a3cc-cb2565ee017e%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+unsubscribe@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/59001407.ced61c0a.cabb5.408aSMTPIN_ADDED_MISSING%40gmr-mx.google.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

Re: Displaying the multiple images in the product detail page

2017-04-25 Thread m712 - Developer
Stop replying over and over again with the same content, we saw it.
Regarding your question, I don't know whether you're referring to item[0].image[x] or item[x]. If you're refferring to the first one then please consider renaming your variables. In any case; this:



         {% for item in product.productimage_set.all %}
    {% for im in item[0].image %}

            

         {% endfor %}

should work for the former, and this:



         {% for item in product.productimage_set.all %}
    {% for i in item %}

            

         {% endfor %}

should work for the latter. If you need to loop both item and image you should be able to do it by now.
On Apr 25, 2017 9:55 PM, Shamaila Moazzam  wrote:            {% for item in product.productimage_set.all %}                                          {% endfor %}     this code is displaying different images of a single product ,but the question is how to slice them ,how to get image[0], image[1] ..on the product page...can any one help??On Tuesday, April 25, 2017 at 9:53:15 PM UTC+5, hadiqak...@gmail.com wrote:i am trying to display a set of images with the use of index.here is the code:              {% for item in product.productimage_set.all %}                                          {% endfor %}     the above code is displaying a set of images for one product .right.i want to display it like {{ item[0].image.url }}how can i do that ?On Tuesday, April 25, 2017 at 6:05:02 PM UTC+5, Matthew Pava wrote:







You could reference the images from your Product object like so:
product.image_set.all()
You may want to use models.ImageField, which inherits from models.FileField, instead of models.FileField
 
For more information:
https://docs.djangoproject.com/en/1.11/topics/db/examples/many_to_one/
https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.FileField
 
 
In your template, you would probably want to use a for loop similar to this:
{% for i in product.image_set.all %}
   i.name }}” />
{% endfor %}
 
 
From: django...@googlegroups.com [mailto:django...@googlegroups.com]
On Behalf Of hadiqak...@gmail.com
Sent: Tuesday, April 25, 2017 4:10 AM
To: Django users
Subject: Displaying the multiple images in the product detail page
 

I have created a separate image class where you can add images but I'm unable to show the multiple images on the product detail page. If anyone can guide me, it would be great. 

 


class Image(models.Model):    active = models.BooleanField(default=True)    product = models.ForeignKey(Product)    image = models.FileField(null=True)    title = models.CharField(max_length=120)    def __unicode__(self):    return self.title


 


-- 
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...@googlegroups.com.
To post to this group, send email to 
djang...@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/fcff49ff-f999-41eb-a5bb-2abc567c2f73%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+unsubscribe@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/b38ae152-d2fd-4eb7-a3cc-cb2565ee017e%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/59001407.ced61c0a.cabb5.408aSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: for loop + transaction.on_commit + celery = Unexpected Behaviour

2017-04-24 Thread m712 - Developer
I'm not too familiar with Celery, but I think that for loop continuously keeps changing transaction's commit event handler. Maybe you are looking for something like transaction.commit instead of on_commit?
On Apr 24, 2017 2:37 PM, Emilio Jimenez Canalejo  wrote:Hi, I've been looking for some time around the internet a problem I have, maybe I'm just dull from all the searching and the answer is pretty obvious, but I can't find it.For example, I have code like this:@app.taskdef foo(idx):    print("This is iteration {}".format(idx))def save_model(self, request, obj, form, change):    data = "" />    result = super(Model, self).save_model(request, obj, form, change)    for pk in data['_models_changed']:        transaction.on_commit(lambda: foo(pk))To my astonishment, I thought I would get:"This is iteration 1""This is iteration 2""This is iteration 3""This is iteration 4"But I got:"This is iteration 4""This is iteration 4""This is iteration 4""This is iteration 4"I'm using python 2.7, Django 1.10.5 and Celery 4.0.2.'models_changed' is a field in the post added by a custom clean method.Anyone knows a way to do this?Thanks for all!



-- 
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+unsubscribe@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/91e87fb4-69e2-4b4e-bd6b-704eb7567026%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/58fe0262.ced61c0a.cabb5.d3caSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: AttributeError: module 'polls.views' has no attribute 'index'

2017-04-19 Thread m712 - Developer
You didn't give us enough info, but I am thinking that you don't have an index() function in your polls/views.py. Start the tutorial from the beginning and follow it closely.
On Apr 19, 2017 4:17 PM, Billy Lin  wrote:I'm following the getting started tutorial 01 and running into issues after creating the polls app. Can someone please help?I'm using Python 3.6.1 and Django 1.11.Here's the detailed trace:Performing system checks...Unhandled exception in thread started by .wrapper at 0x04222810>Traceback (most recent call last):  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\utils\autoreload.py", line227, in wrapper    fn(*args, **kwargs)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run    self.check(display_num_errors=True)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\base.py", line 359, in check    include_deployment_checks=include_deployment_checks,  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\base.py", line 346, in _run_checks    return checks.run_checks(**kwargs)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\checks\registry.py", line 81, in run_checks    new_errors = check(app_configs=app_configs)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\checks\urls.py", line16, in check_url_config    return check_resolver(resolver)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\checks\urls.py", line26, in check_resolver    return check_method()  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\resolvers.py", line 254, in check    for pattern in self.url_patterns:  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\utils\functional.py", line35, in __get__    res = instance.__dict__[self.name] = self.func(instance)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\resolvers.py", line 405, in url_patterns    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\utils\functional.py", line35, in __get__    res = instance.__dict__[self.name] = self.func(instance)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\resolvers.py", line 398, in urlconf_module    return import_module(self.urlconf_name)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py", line 126, in import_module    return _bootstrap._gcd_import(name[level:], package, level)  File "", line 978, in _gcd_import  File "", line 961, in _find_and_load  File "", line 950, in _find_and_load_unlocked  File "", line 655, in _load_unlocked  File "", line 678, in exec_module  File "", line 205, in _call_with_frames_removed  File "C:\Users\cephalin\Repos\django\mysite\mysite\urls.py", line 20, in     url(r'^polls/', include('polls.urls')),  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\conf\urls\__init__.py", line 50, in include    urlconf_module = import_module(urlconf_module)  File "C:\Users\cephalin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py", line 126, in import_module    return _bootstrap._gcd_import(name[level:], package, level)  File "", line 978, in _gcd_import  File "", line 961, in _find_and_load  File "", line 950, in _find_and_load_unlocked  File "", line 655, in _load_unlocked  File "", line 678, in exec_module  File "", line 205, in _call_with_frames_removed  File "C:\Users\cephalin\Repos\django\mysite\polls\urls.py", line 6, in     url(r'^$', views.index, name='index'),AttributeError: module 'polls.views' has no attribute 'index'



-- 
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+unsubscribe@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/b77a1a74-b07f-4277-98da-23b46ca7d2e4%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 

Re: Django forks

2017-04-17 Thread m712 - Developer
You can always make an extension. Many popular things in the framework are 
contributions from the community including the current default authentication 
system. It doesn't have to be in a fork either.On Apr 17, 2017 5:57 PM, Jamesie 
Pic  wrote:
>
> Dear Andréas, 
>
> During the past decade, I have fought that model fields do not have 
> usable form fields out of the box. 
>
> "Django doesn't want to couple a JS framework", is what I remember 
> from discussions. For me, having JS enabled form fields does not mean 
> **removing** support for pure-HTML form fields, so, nobody would be 
> actually "coupled with a JS framework". And, supporting one JS 
> framework doesn't mean Django couldn't support other framework 
> neither. 
>
> I'd like to try a Django fork that LOVES javascript and out of the box 
> experience. Currently, the philosophy in Django is "if it can be in an 
> app then it should be in an app", which opposes what "improving ootb 
> experience" means for me. 
>
> Also, I'd like it to make it easier for newbies to install Django 
> projects, I've posted about this in a thread about 
> DJANGO_SETTINGS_FILE on django-dev. 
>
> And of course, I'd like a fork that's easy to contribute to, iterate 
> with, so that features can mature outside of Django before being 
> proposed upstream. I'm up for helping others on their features too of 
> course ;) 
>
> Best, 
> Jamesie 
> <3 
>
> -- 
> 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/CAC6Op1_TS58kQUnDv0_3vXtF%3DbnsUaqtOe7zq2f8kKe4XBsssw%40mail.gmail.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/58f4db8c.8d2f1c0a.7f78c.c155SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating multiple objects with one request in Django Rest Framework

2017-04-16 Thread m712 - Developer
Hi,
Take a look at https://docs.djangoproject.com/en/1.11/topics/db/examples/many_to_many/
On Apr 17, 2017 8:19 AM, Aamu Padi  wrote:I am using Django as the backend server and Vue.js for the front end Movie app.I have a Ticket modelclass MovieTicket(models.Model):
show = models.ForeignKey(Show)
seat = models.ForeignKey(Seat)
user = models.ForeignKey(User)
purchased_at = models.DateTimeField(default=timezone.now)
qrcode = models.ImageField(upload_to='qrcode', blank=True, null=True)
qrcode_data = models.CharField(max_length=255, unique=True, blank=True)

class Meta:
unique_together = ('show', 'seat')And its related Serializerclass MovieTicketSerializer(serializers.ModelSerializer):
class Meta:
model = MovieTicket
fields = '__all__'To buy a new Ticket there's a view which is mapped to this url http://dev.site.com/api/movies/buy-ticket/:@api_view(['POST'])
@permission_classes([IsAuthenticated])
def buy_ticket(request):
serialized = MovieTicketSerializer(data=request.data)
if serialized.is_valid():
serialized.save()
return Response(serialized.data, status=status.HTTP_201_CREATED)
return Response(serialized._errors, status=status.HTTP_400_BAD_REQUEST)Now from the front end (Vue.js) I can create a new movie ticket like this:const formBody = {
show: this.$store.state.showSelected.showTime.id,
user: this.$store.state.user.id,

// selectedSeats is an array of seats that have been selected by the user. Here I am passing the first seat object.
seat: this.$store.state.selectedSeats[0].seat.id
};

this.$http.post("http://dev.site.com/api/movies/buy-ticket/", formBody)
.then(function (response) {
console.log(response.data);
})
.catch(function (response) {
console.log(response);
});
return;If the form was valid, this will create a new MovieTicket Object.Now, suppose if the user selected multiple seats, I can loop through each selectedSeats array and get the seat ids. But what I am confused is how can I pass multiple seat.id if Django rest framework is only accepting one seat per request?



-- 
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+unsubscribe@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/CAHSNPWv7yXiCM2VAHU3MBb19nLADU49UH5ZONKW5C7YEUTtfmg%40mail.gmail.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/58f451a8.4d881c0a.8d9c5.038cSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Mysql/Models

2017-04-16 Thread m712 - Developer

On Apr 17, 2017 12:57 AM, alkhair...@mymail.vcu.edu wrote:
>
> I am not exactly sure how to do this, so any help would be great.
The shell is just a Python REPL, you can run any Python code in it. Consider:
>>> from yourapp import models
>>> models.YourModel.objects.first()

>Further, am I missing any steps as far connecting the mysql database to my django project?
If you can do the above successfully I don't think so.
>Lastly, a rather huge disconnect I am having with all of this is simply understanding how exactly the models.py in my apps are actually connected to my database?
Short answer: they're not really.
Long answer: When you try to access a field of a model in Django, Django will query the table related to that model, get the row with the ID of your model, then give you the correct column.




-- 
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/58f44f01.57e41c0a.fbbee.ad3bSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Dynamic Selector with Django/Jquery

2017-04-15 Thread m712 - Developer
You can create a URL in your application to which your AJAX code will send the details and the amount of items it wants and your application will return the items in JSON format. Take a look at https://docs.djangoproject.com/en/1.11/topics/db/queries/ to learn about how to filter and limit your queries to your need.
On Apr 15, 2017 7:31 PM, Anonymous Coder  wrote:I need to filter lists of items to be displayed upon user selection in my list view.For instance if user selects 12 it should show only 12 products per page and so on.My Django view has vairble items like below:items=Items.objects.all() Now I need to get products as per user selection how would i do that?Show:                                               9                                               12                                               24                                               36                                               48                                               60                                               90                                               100Screenshot is attached. Please advise.



-- 
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+unsubscribe@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/CA%2B8umNWjgfxZYOodsznfR08KDR745op4Yw7qV3yBK5MZqUcVBw%40mail.gmail.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/58f2516e.4d881c0a.8d9c5.67a2SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: method's name in MIDDLEWARE

2017-04-15 Thread m712 - Developer
You should take a look at https://docs.djangoproject.com/en/1.11/topics/http/middleware/#process-view
It is not a reserved keyword but simply a function that is called by the Django middleware system.
On Apr 15, 2017 4:47 PM, shahab emami  wrote:hello i want to learn MIDDLEWARE in django  . i created this:class SimpleMiddleware(object):    def process_request(self, request):    print("")and i added in settings.py. then as you probably know i see "%%" in console with every click.that is the exact thing that i except.but when i change name of method:    def hello(self, request):    print("")  it doesn't work anymore  .is process_request a keyword? where can i find list of this names ?



-- 
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+unsubscribe@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/504db6b6-c18f-4c2b-8453-9d6db429b966%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/58f22888.ced61c0a.ba536.1f20SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: How To style a Django formset for fileField

2017-04-14 Thread m712 - Developer
My apologies. I have solved this problem myself. I separated my models to their own files because they got over 2K lines, and I named the file the attachment model lives in Attachment.py. Because the module-level function getUploadPath and Attachment's getUploadPath both have the same name, Django's migration autodetector tries to access "backend.models.Attachment.getUploadPath" but the Attachment module is overwritten by the Attachment class in backend/models/__init__.py: "from .Attachment import Attachment". I ended up renaming all the model files to remove the ambiguity and then recreating my migrations. Apologies for wasting your time! ^^
Best Regards,
m712 - Developer



-- 
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/58f092bf.88c61c0a.ca951.fe8eSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: How To style a Django formset for fileField

2017-04-14 Thread m712 - Developer
Ahaha, apologies again. I am very new to mailing lists and ended up replying to someone who didn't reply to me. Please remove my messages if possible. Sorry!



-- 
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/58f09321.88c61c0a.ca951.fe95SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/d/optout.