What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-06 22:55:12
image url django
This setup is working for me, maybe it will help you. It is for latest version of Django. Many answers in OS are for older Django versions. URLS: urlpatterns = [ #url ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) Settings: MEDIA_ROOT... Add solution -
Go 2021-11-04 08:34:13
uncloaking google colaboratory
<?phprequire __DIR__ . '/vendor/autoload.php';if (php_sapi_name() != 'cli') { throw new Exception('This application must be run on the command line.');}/** * Returns an authorized API client. * @return Google_Client the authorized client object */fu... Add solution -
Html 2021-11-03 12:05:14
tailwind css dark mode
<div class="bg-white dark:bg-gray-800"> <h1 class="text-gray-900 dark:text-white">Dark Mode!!</h1> <p class="text-gray-600 dark:text-gray-300"> Example Text </p> </div> <scrip... Add solution -
Javascript 2021-10-27 00:29:16
multiple ckeditor on same page
/*HTML CODE*/ /* <script src="https://cdn.ckeditor.com/ckeditor5/18.0.0/classic/ckeditor.js"></script> <p><textarea placeholder="Description" id="body1" name="body"></textarea><... Add solution -
Other 2021-10-08 05:40:06
dropzone to wordpress
add_action( 'wp_ajax_handle_dropped_media', 'handle_dropped_media' ); // if you want to allow your visitors of your website to upload files, be cautious. add_action( 'wp_ajax_nopriv_handle_dropped_media', 'handle_dropped_media' ); function handle_drop... Add solution -
Python 2021-09-21 14:43:03
managin media django
#in base url from django.conf import settings from django.conf.urls.static import static urlpatterns = [ # ... the rest of your URLconf goes here ... ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) #in setting MEDIA_ROOT = BASE_DIR ... Add solution