Questions tagged [backend]

For questions involving the data processing components of a system. These components are typically called to from the user interface or business layer components, rather than interacting directly with the end-user.

Questions pertaining to a component in the “back half” of an application, that is, not user-facing. Typically, this component is called from user interface or business layer components to perform processing actions, rather than interacting directly with the end-user.

This may include layers as far back as the data storage component such as a database server.

8432 questions
170
votes
14 answers

.filter() vs .get() for single object? (Django)

I was having a debate on this with some colleagues. Is there a preferred way to retrieve an object in Django when you're expecting only one? The two obvious ways are: try: obj = MyModel.objects.get(id=1) except MyModel.DoesNotExist: # We…
Cory
  • 22,772
  • 19
  • 94
  • 91
104
votes
9 answers

How to change matplotlib backends

I am struggling with the following issue. I need to generate reports that consists of a collection of charts. All these charts, except one, are made using Matplotlib default backend (TkAgg). One chart needs to be made using the Cairo backend, the…
DrDee
  • 3,549
  • 6
  • 30
  • 37
101
votes
2 answers

OSError: [Errno 18] Invalid cross-device link

I'm working with django 1.6.5 and python 2.7. I have import feature in my app and I get error: OSError: [Errno 18] Invalid cross-device link I have problem with this part of code: os.rename(db_temp, settings.DATABASES['bookmat']['NAME']) code in…
mark
  • 1,027
  • 2
  • 7
  • 7
85
votes
14 answers

How can I take a screenshot/image of a website using Python?

What I want to achieve is to get a website screenshot from any website in python. Env: Linux
Esteban Feldman
  • 3,288
  • 6
  • 32
  • 31
72
votes
3 answers

how to handle a post request in next.js?

I want to setup a POST route in my api folder using next.js, And I'm sending the data to the route but I can't parse the data to actually save it in the database. what is the best way to handle POST routes in next.js. particularly parsing the data…
Dastan
  • 1,929
  • 2
  • 10
  • 21
61
votes
9 answers

Do not use System.out.println in server side code

I heard that using System.out.println for logging purposes is a very bad practice and this may force the server to fail. I don't use this approach but I am very interested in knowing why System.out.println could make so trash things when used in…
Oleksandr
  • 2,346
  • 4
  • 22
  • 34
56
votes
10 answers

How to switch Backend with Keras (from TensorFlow to Theano)

I tried to switch Backend with Keras (from TensorFlow to Theano) but did not manage. I followed the temps described here but it doesn't work. I created a keras.json in the keras' directory (as it did not exist) but it doesn't change anything when I…
DaniPaniz
  • 1,058
  • 2
  • 13
  • 24
53
votes
6 answers

Shared models between two Rails apps - what is the ideal solution for Workflow?

I am currently working on a Rails 3 project that is divided up into four parts: The public facing website The administration website/backend The models The API for third party data access As the models are shared between the three key components I…
Matthew Savage
  • 3,794
  • 10
  • 43
  • 53
53
votes
5 answers

How to handle XML services in AngularJS?

My company has thousands of existing xml web services and is starting to adopt AngularJs for new projects. The tutorial over at http://angularjs.org/ uses json services exclusively. It looks like they make a service call in the controller, parse the…
Nick Vikeras
  • 763
  • 2
  • 6
  • 10
50
votes
2 answers

What does passport.js do and why we need it?

I am not familiar with user authentication in Node.js, now I am trying to create a website with a login system. I have managed to make it work using the code snippets from the website, but I don't really understand why we need the passport.js as a…
Leonard Ge
  • 829
  • 2
  • 7
  • 16
48
votes
6 answers

How to interact with back-end after successful auth with OAuth on front-end?

I want to build small application. There will be some users. I don't want to make my own user system. I want to integrate my application with oauth/oauth2.0. There is no problem in integration of my front-end application and oauth 2.0. There are so…
Sharikov Vladislav
  • 7,049
  • 9
  • 50
  • 87
48
votes
4 answers

What is a good back-end to use with AngularJS

I want to know your suggestions about a good back-end to use with AngularJS as a front-end. Why is your suggested back-end good and is it easy to use, or easy to learn?
STheFox
  • 1,478
  • 4
  • 18
  • 24
48
votes
4 answers

How to use Cassandra in Django framework

Is there any robust way of implementing Cassandra back end to a web application developed using Django web framework?
Switch
  • 14,783
  • 21
  • 69
  • 110
47
votes
5 answers

SequelizeConnectionError: self signed certificate

I am trying to connect to a PostgreSQL Database that I've set up in Heroku. const { Sequelize, DataTypes, Model } = require("sequelize"); // DB Configuration const sequelize = new Sequelize({ database: "[won't show db]", username: "[won't show…
Dmitriy Shin
  • 633
  • 1
  • 8
  • 9
39
votes
7 answers

Next.js API is back-end?

I know Next.js is front-end but when I used API of next.js it can response and can manage route or anything about back-end can do. Then I want to know "Next.js api is back-end ?"
Loga Thrim
  • 567
  • 1
  • 8
  • 11
1
2 3
99 100