-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django : dropdown and input data-datepicker ( volt bootstrap 5) not working on heroku #56
Comments
Hello @InesSehili, Thank you for using our products. HEROKU, being a deployment platform, should not affect the UI & UX of the product if the static assets are bundled correctly. Please provide more information regarding the deployment of the static assets. |
Hi thank you for your answers import os Build paths inside the project like this: os.path.join(BASE_DIR, ...)BASE_DIR = Path(file).parent SECURITY WARNING: keep the secret key used in production secret!SECRET_KEY = config('SECRET_KEY', default='S#perS3crEt_1122') SECURITY WARNING: don't run with debug turned on in production!DEBUG = config('DEBUG', default=True, cast=bool) load production server from .envALLOWED_HOSTS = ['crea78987.herokuapp.com', '127.0.0.1', config('SERVER', default='127.0.0.1')] Application definitionINSTALLED_APPS = [ ] MIDDLEWARE = [ ROOT_URLCONF = 'core.urls' TEMPLATES = [ WSGI_APPLICATION = 'core.wsgi.application' Databasehttps://docs.djangoproject.com/en/3.0/ref/settings/#databasesDATABASES = { Password validationhttps://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validatorsAUTH_PASSWORD_VALIDATORS = [ Internationalizationhttps://docs.djangoproject.com/en/3.0/topics/i18n/LANGUAGE_CODE = 'fr' TIME_ZONE = 'Africa/Algiers' USE_I18N = False USE_L10N = False USE_TZ = False ############################################################# SRC: https://devcenter.heroku.com/articles/django-assetsStatic files (CSS, JavaScript, Images)https://docs.djangoproject.com/en/1.9/howto/static-files/STATIC_ROOT = os.path.join(CORE_DIR, 'staticfiles') Extra places for collectstatic to find static files.STATICFILES_DIRS = ( ` |
My Pocfile requirements.txt my runtime.txt file |
Hello @InesSehili, Try to guard the Once the app is deployed, the browser JS console shows any messages? |
P.S. To have a successful HEROKU deploy please follow all steps suggested by this tutorial: |
Good evening |
Is there any solution please ? |
For people who had this type of error; here is my solution: I had to put my own css code for the dropdown menu and replacing datepicker by input type = "date". to make my site work on heroku. |
Hello,
Try to deploy the assets on a separate server. CDN for instance.
I see some errors bumped by "*popper.min.js*" and "
*smooth-scroll.polyfills.min.js*" both related to fonts:
***@***.***/fontawesome-free/webfonts/fa-solid-900.woff2
->
404 Error (not found).
Please note that the product is not shipped with deployment assistance,
even the premium version.
The variety of the deployment platforms is very fragmented and we usually
provide tutorials to help a little.
Let us know your progress.
…On Sun, 15 Aug 2021 at 16:06, Ines Sehili ***@***.***> wrote:
Is there any solution please ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMFUJGDUJWHARCFSP32KWETT463V3ANCNFSM5CFGGW4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Ok thank you |
Hello
I have been working on my django project for a long time, and I used django user profile; everything works fine locally, but when i deployed my app to heroku:
dropdown menu no longer works
and also calendar inputs
I need your help please
thank you
The text was updated successfully, but these errors were encountered: