These are chat archives for mirumee/saleor

Aug 2018
Joshua Fialkoff
Aug 03 2018 11:37
Thanks @NyanKiyoshi . I've already been exploring that file. It's not super clear to me how to add additional fields. Is there any documentation on that or, if not, can you give me some pointers. I'm finding that file a little confusing.
Aug 03 2018 12:11
There would be two ways... One would be to create an independent form; another would be to force Saleor to not exclude given fields from the i18n address form no matter what, which would resume to do this (where is_private is set in the Address model); getting dirty
Index: saleor/account/
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
--- saleor/account/    (revision 89489fa751617fdb1e60f508ef6eb05931398c5b)
+++ saleor/account/    (date 1533298072000)
@@ -75,6 +75,8 @@

 class AddressForm(forms.ModelForm):

+    BASE_FIELDS = ['is_private']
         ('first_name', 'given-name'),
         ('last_name', 'family-name'),
@@ -114,7 +116,9 @@
             'country_area': pgettext_lazy(
                 'Country area', 'State or province'),
             'phone': pgettext_lazy(
-                'Phone number', 'Phone number')}
+                'Phone number', 'Phone number'),
+            'is_private': pgettext_lazy(
+                '....', 'Is private')}

     phone = PossiblePhoneNumberFormField(
         widget=PhonePrefixWidget, required=False)
@@ -148,7 +152,8 @@
         ('postal_code', ['postal_code']),
         ('city', ['city']),
         ('sorting_code', []),
-        ('country_code', ['country'])]
+        ('country_code', ['country'])] + [
+            (field_name, [field_name]) for field_name in AddressForm.BASE_FIELDS]

     class Meta:
         model = Address
@@ -208,6 +213,7 @@
         return bound_fields

     if fields_order:
+        fields_order.append(AddressForm.BASE_FIELDS)
         return [_convert_to_bound_fields(form_instance, line)
                 for line in fields_order]
Aug 03 2018 12:41
how can I add my own css, js file in server? In local it is working but when pushing to heroku, custom css is not coming.
Joshua Fialkoff
Aug 03 2018 13:13
Thanks so much @NyanKiyoshi !

hello people!,
I'm playing around with saleor
followed the
the application runs smooth

export SECRET_KEY=secret
export AWS_ACCESS_KEY_ID=<secret>
export AWS_SECRET_ACCESS_KEY=<secret>
export AWS_LOCATION=us-east-2
export STATIC_URL=
export MEDIA_URL=

now im trying to use CDN, the static files are uploaded s3

DEBUG=False python runserver --nostatic

the page is searching the assets at:

STATIC_URL/storefront.72bb718d745444bc6aad.js                  (not found 404)
STATIC_URL/assets/storefront.72bb718d745444bc6aad.js    (in s3 I can see the file is located at)
Aug 03 2018 18:18
You mean it is requesting STATIC_URL/storefront.72bb718d745444bc6aad.js exactly like this, instead of
its missing the /assets/ prefix
its looking at
should be
Aug 03 2018 18:21
You should supply instead, or I'm missing something
the files are uploaded using python collectstatic
you mean STATIC_URL=
that was the error visiting the /
if i visit /dashboard/
the /dashboard/prefix would be missing...
Aug 03 2018 18:24
Yes, setting STATIC_URL= and then recompile the assets as it will update the generated config in webpack-bundle.json
ok, I'll give it a try
Aug 03 2018 18:27
I'm not 100% sure if it is gonna conflict or not with the static files that are not under the assets folder (e.g.: the placeholder image)
Keep me updated on that
Aug 03 2018 19:00
Opened #2515 for that