Comments (20)
Please take a look at issue #11. Is sweetalert installed correctly?
from sweetify-django.
Hello, thank for you reply.
It includes installation in the generation of the docker container and apparently everything is OK.
from sweetify-django.
Did you try this #11 (comment)?
from sweetify-django.
I need to install the sweetify2 or just sweetify (pip install sweetify) ?
from sweetify-django.
In my code I inserted:
sweetify.sweetalert(request, 'Title', button=True)
Error :
The view aries_community.views.handle_credential_offer didn't return an HttpResponse object. It returned None instead.
from sweetify-django.
As stated in the README "Note: This package does not provide the client-side files of SweetAlert. You have to provide them yourself." you have to install the client-side part yourself. So you need to install both sweetify and sweetalert2.
Regarding your error: Did you read the README at all? You still have to redirect at the end.
from sweetify-django.
Take a look
sweetify.success(request, 'test')
return redirect('/connections')
Nothing happens...
from sweetify-django.
Did you try this #11 (comment)?
Did you try this?
from sweetify-django.
The Django is running inside a container, how do I do this?
from sweetify-django.
This has nothing to do with your container. Open your browser, navigate to your site and execute the line?
from sweetify-django.
VM129:1 Uncaught ReferenceError: Swal is not defined
at :1:1
from sweetify-django.
Sorry, but not is clear to me where I must install the lib sweetalert2.
Should I generate the Django container with the library or load it on the base page of the site?
I try to execute in console of Chrome and I get the error:
Uncaught ReferenceError: Swal is not defined
from sweetify-django.
Yeah, so you are missing the sweetalert2 library. Include it in your base template to load it.
from sweetify-django.
How I do this ?
from sweetify-django.
Put <script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
into your base template
from sweetify-django.
Its works, thanks a lot for your help.
from sweetify-django.
Glad to hear :)
from sweetify-django.
Why doesn't the image appear?
from sweetify-django.
I can't help you if you give me no information whatsoever.
from sweetify-django.
Thanks a lot again...Its works...just pass icon='error' for example in thes command.
from sweetify-django.
Related Issues (19)
- Sweetify not showing alert message HOT 10
- it doesn't work HOT 2
- Pop up will show on back click HOT 2
- Sweetalert HOT 10
- Confirm deletion HOT 1
- No show icon HOT 1
- Json objects HOT 2
- No modal displayed HOT 1
- input ajax requests HOT 1
- 'Context' object has no attribute 'request' HOT 1
- How do I style the alert? HOT 3
- Attribute error - module 'sweetify' has no attribute 'multiple' HOT 9
- Improvement/Bug in django 4.0
- Sweetify customClass HOT 1
- The parameter "allowOutsideClick" is incompatible with toasts
- Return value from alerts.
- Sweetalert2 versions HOT 1
- Handling event if ok button is clicked HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sweetify-django.